Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72443

How can I click RECT at python selenium

$
0
0

I tried many times ... but everything is not ...

I want to click "RECT" at this site with python selenium

Can you help me?

** my code**

WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='ez_canvas']/svg/rect[101]"))).click()

<< Target HTML >>

<div id="ez_canvas" style="width: 682px; height: 602px;"><svg height="602" version="1.1" width="682" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative; background-color: rgb(244, 244, 244);" viewBox="0 0 520 520" preserveAspectRatio="xMidYMid meet"><image x="0" y="0" width="520" height="520" preserveAspectRatio="none" xlink:href="https://cdnticket.melon.co.kr/resource/image/upload/seat/2019/11/20191101152457ff3aa7a1-3231-45ba-b966-7995c6150ab3.svg" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></image><desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Created with Raphaël 2.1.2</desc><defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></defs><rect x="51.303463203463195" y="96.77460317460313" width="106" height="171" rx="0" ry="0" fill="none" stroke="#000" stroke-width="0" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect>

I want to choose "RECT".. Help!


Viewing all articles
Browse latest Browse all 72443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>