lore6dana wrote:
> Hi!
> I created a test using Selenium and I have to verify if a check box is
> checked or not. I tried to use assertChecked(locator) but it gives me the
> following error:
> Element qxh=app:child[0]/child[3]/child[1]/child[0]/child[1] is not a
> toggle-button
> Where qxh=app:child[0]/child[3]/child[1]/child[0]/child[1] is my check box
> locator. When i press the 'Find' button in selenium in debug mode it says:
> [debug] Qxh Locator: Terminating search, found match; last step :child[1],
> element: qx.ui.form.CheckBox[603]
> That means that the locator is pointing to a check box, so I can't find the
> problem. Is there another way to verify the check-box state?
>
> Besides that, I have another problem. The application that I test is
> implemented in qooxdoo and when I run the same test on the same application
> but accessed from different machines I get different results. On some
> addresses the test runs ok and on others some windows don't respond to the
> same locators. I don't understand why given that the application and the
> test are the same. Any idea what may be the problem?
>
> Can someone help me, please? Or at least give me a hint?
> Thanks,
> Loredana
>
Hi,
for your first problem, to verify the check-box state, you can use
selenium.qxObjectExecFunction("qxh=app:child[0]/child[3]/child[1]/child[0]/child[1]",
"isValue"));
this returns a String : true if the checkBox is checked and false if not.
After, you can use the Assert.assertEquals() method.
Cheers.
Olivier.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel