gpt4 book ai didi

How can i control loop alert pop-up by python selenium?(如何使用python Selify控制循环警报弹出窗口?)

转载 作者:bug小助手 更新时间:2023-10-28 22:20:29 26 4
gpt4 key购买 nike



when Some button click there's pop-up as below.
enter image description here
I want close pop-up and click that button until no pop-up appears.

当某个按钮点击时,会弹出如下所示。在此处输入图像描述我要关闭弹出窗口,然后单击该按钮,直到没有弹出窗口出现。


driver = webdriver.Chrome
driver.get(URL)
driver.find_element(By.XPATH,'/html/body/div[3]/main/div/div/div/div/div/div/div/div/div[2]/div[3]/div/a').click() << that button
da = Alert(driver)
da.accept()

驱动程序= webdriver.Chrome驱动程序.get(URL)驱动程序.find_element(By.XPATH,'/html/body/div[3]/main/div/div/div/div/div/div/div[2]/div[3]/div/a').click()<< that button da = Alert(driver)da.accept()


How should I write the code?

我应该如何编写代码?


I use while but it doesn't matter

我用的是While,但没关系


pls help me for this question i join overstack flow.

请帮我回答这个问题,我加入了叠加流。


更多回答
优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com