UI Elements that don't work too well
- Right Clicks don't seem to be captured in Selenium so if you use them, you probably got to try another way of testing.
- Date pickers, don't seemed to work well too, i use the type command to input values into date pickers and time pickers in forms.
Asserting.
- For textfield use verifyValue, the Target being the id of the element and the Value is the text you want to check against. Using assertText dosen't seemed to work for me.
- You can right click on the web page and it will show a context menu allowing you to add assertions/verifications easily instead of trying to use firebug or some other tool to find the id or xpath value.
Speed
If you are using iframes in your pages, you might want to slow down your tests instead of putting it on the fast mode. This ensures that your iframes have time to load completely and that Selenium can find the link to whatever that you are clicking next.
No comments:
Post a Comment