Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created June 14, 2019 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/7152109ebaaaf4ac0d63d74ead0c42c4 to your computer and use it in GitHub Desktop.
Save seleniumgists/7152109ebaaaf4ac0d63d74ead0c42c4 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
driver.find_element_by_xpath("(.//*[normalize-space(text()) and normalize-space(.)='key'])[1]/following::textarea[1]")
```
now I want the *'key'* to be changeable- now in my code I'm using entry field to get it's value and then execute my test so I use ```key= entry.get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment