Skip to content
Snippets Groups Projects
Commit 1f648d90 authored by JonahStanley's avatar JonahStanley
Browse files

Revert "Reworded css_text to use css_find"

This reverts commit a7de337fe2d218d6cb9c2f175c6ea71f5ddcb6da.
parent 287b750a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment