Revert "Reworded css_text to use css_find"
This reverts commit a7de337fe2d218d6cb9c2f175c6ea71f5ddcb6da.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user