Commit 01415bce by Ben Patterson

Quality fixes.

parent 11bb6ce0
...@@ -199,12 +199,12 @@ def enable_css_animations(page): ...@@ -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 Get the x and y coordinates of elements
""" """
cordinates_dict = page.browser.find_element_by_css_selector(coordinates_for) coordinates_dict = page.browser.find_element_by_css_selector(css_selector)
location = cordinates_dict.location location = coordinates_dict.location
for key, val in location.iteritems(): for key, val in location.iteritems():
if key == 'x': if key == 'x':
x_axis = val x_axis = val
...@@ -212,6 +212,7 @@ def coordinates_for_scrolling(page, coordinates_for): ...@@ -212,6 +212,7 @@ def coordinates_for_scrolling(page, coordinates_for):
y_axis = val y_axis = val
return x_axis, y_axis return x_axis, y_axis
def select_option_by_text(select_browser_query, option_text): 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). 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