Description of problem: Go through different links in the oVirt Administration User Interface, the URL in the location bar doesn't change. Selenium couldn't catch the element link. Version-Release number of selected component (if applicable): oVirt 0.91-1 How reproducible: Steps to Reproduce: 1. Install the oVirt Developer Version 2. Log in the oVirt Administration User Interface. 3. Use Selenium to record test steps 4. Click the links in the oVirt Administration User Interface Actual results: The URL in the location bar always keep in the same (e.g. http://management.priv.ovirt.org/ovirt/ or any other like http://management.priv.ovirt.org/ovirt/hardware/show_vms/1) instead of each link's correct URL, if you move mouse to those link you could see their URL are different. Use Selenium to play the recorded test case, it stops at switch to different links for error found: [error] Element link not found Expected results: Additional info:
xwang, I think adding a screenshot will help us understand the bug easier, ie, where the URL remain the same.
I believe we came up with a Selenium workaround for this, didn't we? Mo, I've assigned this to you, but if the problem is fixed please close it... thanks...
While it can use it, Selenium doesn't need the location bar to do its work. Rather the way our current interface tests function is, the site is brought up by going to http://192.168.50.2/ovirt, then various elements on the page are clicked, and finally the 'wait_for_condition' method, that the selenium api provides, is used to verify elements on the page, not the contents of the location bar. So for example if we used selenium to click on a hardware pool, we'd verify the title of the pool appears where it should on the page, the tabs are available for the user to edit the pool, etc Since you can go directly to the page you are looking for by opening that url manually via the location bar or selenium, eg http://192.168.50.2/ovirt/hardware/show_vms/1, you can bypass navigating to the desired page in a selenium test, and just open the page / perform the steps required to test its functionality. Furthermore the direct urls allow the site to be bookmarkable without needing the javascript which dynamically load the content of the site without page refreshes to have to also update the location bar (which I'm not sure is possible without loading new content into the page). If a test is failing it is most likely due to recent changes in the interface, such as to the nav tree, not related to the location bar, which will need to be pinpointed / identified separately in any case.