Commit 1f648d90 by JonahStanley

Revert "Reworded css_text to use css_find"

This reverts commit a7de337fe2d218d6cb9c2f175c6ea71f5ddcb6da.
parent 287b750a
......@@ -191,7 +191,7 @@ def css_text(css_selector, index=0, max_attempts=5):
attempt = 0
while attempt < max_attempts:
try:
return world.css_find(css_selector, index=index).text
return world.browser.find_by_css(css_selector)[index].text
break
except:
attempt += 1
......
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