Quality Testing

Quality is delighting customers

Does anyone here know how to get Selenium to click on a link using the fireEvent method. It does not seem to work for me in FireFox (although I have not tried in IE either). Here is my code...

selenium.fireEvent("link=Fittings", "click");

This does work...
selenium.click("link=Fittings");

What I am trying to do is make my tests much more dynamic by using XML to create the tests and to identify the elements and actions to be carried out. The fireEvent method will help if I can get it working.

Views: 381

Reply to This

Replies to This Discussion

OK...clearly...fireEvent is meant to execute events tied to an element. If there is no specific event wired up, then it does not fire. Learn something new every day.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service