Wednesday

Selenium - Fireevent ( Country dropdown refresh page for state drop down)

Globals.selenium.fireEvent("//div[@id='portlet-wrapper-Account']/div[2]/div/div/form/table[1]/tbody/tr[13]/td[2]/select", "blur");


You can find the onblur instead of blur . try with blur as Mine worked with it.....


For keyboard operation like pressing tab use the following merhtod...


Globals.selenium.keyPress("country","\t");


Refernce :

http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/java/com/thoughtworks/selenium/Selenium.html#fireEvent%28java.lang.String,%20java.lang.String%29

http://old.nabble.com/Selenium-Java-not-able-to-recognise-objects-td23055657.html

http://osdir.com/ml/web.selenium.user/2006-03/msg00004.html

No comments:

Post a Comment