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.
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)