使用python单击带有硒的SVG按钮

时间:2019-07-22 20:58:15

标签: python html css selenium svg

Sup,

我的想法是从该网站上收集所有固定收益信息:

https://apprendafixa.com.br/app/investimentos/rendafixa?tipo=cdb

我已经完成了获取信息的代码,但是我无法更改页面(检查打印屏幕)。如我们所见,当您单击页面右下角的按钮时,链接不会更改,并且如果单击并按住按钮,则按钮类也会发生变化,

'mat-pagination-navigation-next mat-icon-button cdk-focused cdk-mouse-focused'.

有人知道要使用python / selenium lib单击此按钮吗?

我尝试了find_element_by_css_selector/xpath,但没有结果。

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".mat-button-ripple mat-ripple mat-button-ripple-round"}

################

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <button class="mat-paginator-navigation-next mat-icon-button" mat-icon-button=""
type="button" style="touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);" aria-describedby="cdk-describedby-message-21" cdk-describedby-host="" aria-label="próxima página">...</button> is not clickable at point (612, 583). Other element would receive
the click: <iframe src="https://app.hubspot.com/conversations-visitor/2392485/threads/utk/d51e40fd3a05488c95b5a7a990f29f49?uuid=8b43149d51cf451b94ad2429df3f2c57&amp;mobile=false&amp;mobileSafari=false&amp;hideWelcomeMessage=false&amp;domain=apprendafixa.com.br&amp;inApp53=false&amp;messagesUtk=d51e40fd3a05488c95b5a7a990f29f49&amp;url=https%3A%2F%2Fapprendafixa.com.br%2Fapp%2Finvestimentos%2Frendafixa%3Ftipo%3Dcdb%26corretora%3Dbtg%2520pactual%2520digital&amp;inline=false&amp;isFirstVisitorSession=true"></iframe>

我该如何解决问题?

0 个答案:

没有答案