Thank you a lot for your quick answer. It really helped me. Have a nice day! Loredana
On Fri, May 7, 2010 at 3:32 PM, Daniel Wagner <[email protected]>wrote: > Hi Loredana, > > first of all, welcome to the group! > > I'm not too familiar with Selenium's HTML-formatted tests, so I don't > know if checking for values is possible that way. If you're writing > "real" test scripts in Java, Python or JavaScript using Selenium RC, > your best bet is to use the getEval method to execute a JavaScript > snippet that returns the field's value: > > > selenium.getEval('selenium.getQxWidgetByLocator("qxh=app:child[1]/child[2]/child[0]/child[0]/child[1]").getValue()'); > > Then you just compare it to whatever you're expecting. > > > Regards, > Daniel > > lore6dana schrieb: > > Hello. I'm new to this group and i apologize if someone already asked > this > > and received an answer, but i did not found it. > > I tried to do some automated tests using selenium with qooxdoo for this > page > > http://demo.qooxdoo.org/current/showcase/#form > > http://demo.qooxdoo.org/current/showcase/#form . I succeeded to get to > every > > element from the page but i did not find any command to test if the > actual > > value of a text field or a combo box, or a radio button is equal with one > > that a want to enter. > > > > Here is a piece of my selenium code in html: > > > -------------------------------------------------------------------------------- > > <tr> > > <td>open</td> > > <td>http://demo.qooxdoo.org/current/showcase/#form</td> > > <td></td> > > </tr> > > <tr> > > <td>qxType</td> > > <td>qxh=app:child[1]/child[2]/child[0]/child[0]/child[1]</td> > > <td>qooxdoo</td> > > </tr> > > > ----------------------------------------------------------------------------------- > > > > qxh=app:child[1]/child[2]/child[0]/child[0]/child[1] this is the text > box > > from the right of the label TextField. > > How can i test that it's value is for example 'qooxdoo'? > > > > Can someone help me, please? Or at least give me a hint? > > Thank you in advance. > > > > Loredana > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
