Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

python selenium find element contains text code example

Example: how to locate element by using text

The only locator that works with text is xpath. 
Matching exact text		:    //tag[.=‘text’]
Matching partial text		:    //tag[contains(text(), ’text’)]

Tags:

Misc Example

Related

angular format date yyyy-mm-dd hh mm ss code example axios vs axios code example unity set gameobject color to white code example border css properties code example text file download in php code example github pages host react app code example html youtube re code example moment js get month as number code example nginx settings ubuntu for html code example nextick vue code example command to get system core in linux code example align buttons right code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy