Home > Net >  How to edit a not selenium default alert pop-up in selenium/python? no such alert problem
How to edit a not selenium default alert pop-up in selenium/python? no such alert problem

Time:06-23

I have a big problem with the pop-up window, which is clearly not a default alert message in selenium. I've searched everything but there is no solution for the selenium and Python problem. I ask for help. I want to edit and click the following popup.

This pop up is not selenium alert

driver.switch_to.alert() does not work. As I said, it is not a selenium alert.

This is error which shows up when I'm using:

driver.switch_to.alert : selenium.common.exceptions.NoAlertPresentException: Message: no such alert

CodePudding user response:

Have you tried --disable-default-apps when starting up Chrome?

CodePudding user response:

This is the soluton to click on left button! You need to install the pynput module!

from pynput.keyboard import Key, Controller

    keyboard = Controller()
    keyboard.press(Key.left)
    keyboard.press(Key.enter)
  • Related