Results 1 to 2 of 2

Thread: Why I don't see the value of textfield in the dom?

  1. #1
    Sencha Premium User SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    1,103
    Answers
    12
    Vote Rating
    101
      0  

    Default Answered: Why I don't see the value of textfield in the dom?

    I'm working on a specialized framework doing UI automated test using Selenium driven with Ext JS component query expressions. In Selenium, one of the most popular function is WebElement.getText() but it's returning empty string with Ext JS 4.1.1 textfield. I took a look at the DOM, and yes, the text value shown in the browser is nowhere to be found in the browser DOM...

    You can reproduce with Sencha example, like with: http://docs.sencha.com/ext-js/4-1/#!/example/form/field-types.html

    If you use the browser debugger to ask the dom for the first textfield and have enter different text than the default you will not see the new text in the dom.

  2. http://docs.sencha.com/ext-js/4-1/ex...eld-types.html
    This link isn't in an iframe and when I run the following code in firebug it gives me the expected value
    PHP Code:
    document.getElementsByTagName'input' )[0].value 

  3. #2
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    603
    Answers
    67
    Vote Rating
    284
      0  

    Default

    http://docs.sencha.com/ext-js/4-1/ex...eld-types.html
    This link isn't in an iframe and when I run the following code in firebug it gives me the expected value
    PHP Code:
    document.getElementsByTagName'input' )[0].value 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •