Selenium driver function 'current_url' is wrongly called in integration tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Imran Hayder |
Bug Description
BASIC INFO:
The function defined in selenium, is getting called in integration tests as :
self.driver.
While the official selenium documentation says it should be called as:
self.driver.
The function call is made actually in pageobject.py (base file for all integration tests) but since no tests actually uses it, we dont see the error, if you modify tests to use this call, it will definitely throw an error because actual function defined in selenium is a property function that get called differently than normal function in python are called .
DETAILS:
The integration tests which are basically selenium based UI tests, have a lot of useful helper functions wrapped around actual calls you would make to selenium module.
One of the function defined `horizon/
def get_url_
return self.driver.
Source: https:/
Its obviously not used in any of existing tests but if you try to use this function, it throws an error.
So looking at the official selenium code, I found the its actually being called wrongly. 'current_url` is a property function which act as getters/setters in python so they cant be called as normal function like `func()` but correct way is `func`
Source:
https:/
FIX: just changing the 'current_url()' to 'current_url' will fix it )
summary: |
- Selenium driver property function 'current_url' is wrongly called in - integration tests + Selenium driver function 'current_url' is wrongly called in integration + tests |
Changed in horizon: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/143191
Review: https:/