Results 1 to 2 of 2

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium User SebTardif's Avatar
    Join Date
    Feb 2011
    Cambridge, MA
    Vote Rating

    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:!/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.

    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