Home > Mobile >  I have a selenium python issue on select an html element icon and click
I have a selenium python issue on select an html element icon and click

Time:01-29

I'm trying to click to close a message from a website with selenium. However, when I put it to click, a message appears in the Visual Studio Code console saying that it was not possible to click on the element because it is not a clickable element.

sleep(5)
web.find_element(By.XPATH, '//*[@id="top-container"]/div[1]/div/i').click()

devtool element

error https://i.stack.imgur.com/sgzoE.png

if anyone knows any library that delete the element in devtool. why do i need to remove that message to appear another button to proceed with application

CodePudding user response:

There are different ways to call an element. Let's try the following:

web.find_element(By.ID, "top-container").click()

Please let me know if works, either way we can see other options

CodePudding user response:

Goodnight friend, he followed the advice of using the command that he gave me, but it did not work.

enter image description here

  • Related