Commit b9e5ed95 by Jay Zoldak

Click in the upper left of an element instead of the middle.

parent e7bf05ea
...@@ -94,8 +94,11 @@ def assert_css_with_text(css, text): ...@@ -94,8 +94,11 @@ def assert_css_with_text(css, text):
def css_click(css): def css_click(css):
assert_true(world.browser.is_element_present_by_css(css, 5)) '''
world.browser.find_by_css(css).first.click() Rather than click in the middle of an element,
click in the upper left
'''
css_click_at(css)
def css_click_at(css, x=10, y=10): def css_click_at(css, x=10, y=10):
......
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