I am using selenium to automate some IT admin tasks, a NAS (that I access through an internal webpage) needs some external drives swapped out. I think the web interface uses AJAX to dynamically change the screen around and that generally messes with my ability to navigate around the webpage using selenium.
The NAS supplier has a live demo of the web interface at:
http://www.synology.com/us/products/demo/index.php
This is pretty much identical to the web interface for the NAS.
Anyone have any hints on how to navigate around this type of page? (How do I find the element locator to clickat() to get the control panel open for example). The ids seem to randomly generate every time I log in, to something like “target id=ext-gen525”
You can find the elements by using a CSS or XPATH locators.
And give some wait time between selenium commands(by using proper wait conditions) as your app uses AJAX controls.
Here is the sample code to click on ‘Control panel’ and then click on ‘User’ (in demo web interface: http://www.synology.com/us/products/demo/index.php)