Red Hat Bugzilla – Bug 457724
URL in the location bar doesn't change while viewing different links, Selenium could not find right element link
Last modified: 2010-03-16 13:14:12 EDT
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):
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
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
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
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.