Commit 01415bce by Ben Patterson

Quality fixes.

parent 11bb6ce0
......@@ -199,12 +199,12 @@ def enable_css_animations(page):
""")
def coordinates_for_scrolling(page, coordinates_for):
def coordinates_for_scrolling(page, css_selector):
"""
Get the x and y coordinates of elements
"""
cordinates_dict = page.browser.find_element_by_css_selector(coordinates_for)
location = cordinates_dict.location
coordinates_dict = page.browser.find_element_by_css_selector(css_selector)
location = coordinates_dict.location
for key, val in location.iteritems():
if key == 'x':
x_axis = val
......@@ -212,6 +212,7 @@ def coordinates_for_scrolling(page, coordinates_for):
y_axis = val
return x_axis, y_axis
def select_option_by_text(select_browser_query, option_text):
"""
Chooses an option within a select by text (helper method for Select's select_by_visible_text method).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment