Home > other >  How to click on Search button using Python Selenium
How to click on Search button using Python Selenium

Time:07-20

I'm trying to click a search button with the help of selenium webdriver and python

Here is the HTML Code

<button data-testid="search-button" tabindex="4" type="submit"  xpath="1"><div data-testid="icon-testid" ><div ><span  data-testid="icon:icon-jameda-SVG-icon-Search" color="#fff"><svg><use data-testid="svgcontainer-use" xmlns:xlink="http://www.w3.org/1999/xlink"  
xlink:href="#icon-jameda-SVG-icon-Search"></use></svg></span></div><div color="#fff" >Suchen</div></div></button>
<div data-testid="icon-testid"  xpath="1"><div ><span  data- 
testid="icon:icon-jameda-SVG-icon-Search" color="#fff"><svg><use data- 
testid="svgcontainer-use" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon- 
jameda-SVG-icon-Search"></use></svg></span></div><div color="#fff" >Suchen</div></div>
<div  xpath="1"><span  data-testid="icon:icon-jameda-SVG-icon-Search" color="#fff"><svg><use data- 
testid="svgcontainer-use" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon- 
jameda-SVG-icon-Search"></use></svg></span></div>
<span  data-testid="icon:icon-jameda-SVG- 
icon-Search" color="#fff" xpath="1"><svg><use data-testid="svgcontainer-use"  
xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-jameda-SVG-icon-Search"> 
</use></svg></span>

To see the whole HTML Code visit: jameda

  • Related