Comments (12)
请问您预约成功了吗?我现在在调试程序,可以成功登陆,但是可能因为约满了的缘故程序后续就没有任何反应了,登陆成功后首先要自己点掉那个弹出框程序,才会继续预约吗?
现在登录之后有一个提示框了,需要先确认的
from jiankangyizhan.
是的
from jiankangyizhan.
好的 多谢
from jiankangyizhan.
你可以尝试用以下代码关闭弹出窗口:
browser.find_element_by_xpath("//button[text()=\"確定\"]").click()
from jiankangyizhan.
你可以尝试用以下代码关闭弹出窗口:
browser.find_element_by_xpath("//button[text()=\"確定\"]").click()
这个还是有问题啊
from jiankangyizhan.
你可以尝试用以下代码关闭弹出窗口:
browser.find_element_by_xpath("//button[text()=\"確定\"]").click()
这个还是有问题啊
我没有成功复现这个错误,从报错上看可能和网页没有加载完全有关。脚本在无法捕捉到对应的可交互元素会出现类似错误。在执行这行代码的时候浏览器加载完全并出现弹窗吗?
from jiankangyizhan.
对,出现弹筐了。
还有别的方法定位这个button吗?
from jiankangyizhan.
from jiankangyizhan.
可以尝试用以下方法定位并点击元素:
browser.find_element_by_xpath('//div[@class="flex1"]/button').click()
from jiankangyizhan.
可能是需要让程序暂停1秒。我自己试了一下,如果太快的话就会报错,等一下就好了,反正是可以提前登录的,等个2,3秒没有影响
from jiankangyizhan.
browser.find_element(By.XPATH,"//button[text()="確定"]").click()
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
from jiankangyizhan.
browser.find_element(By.XPATH,"//button[text()="確定"]").click()
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
这个问题可能是页面没有完全加载导致的,可以尝试在在browser.get()后面增加time.sleep(0.5),或者在网络环境更好的地方运行脚本
from jiankangyizhan.
Related Issues (20)
- Traceback (most recent call last): File "main.py", line 65, in <module> timeArray=time.localtime(int(data[149:162])) OSError: [Errno 22] Invalid argument HOT 3
- 小白请教:请问如何配置使用? HOT 1
- 整个运行过程 HOT 32
- 运行后chrome自动关闭 HOT 8
- 关于Windows系统 HOT 5
- 有人用这个脚本抢到了吗 HOT 21
- 调用的时间和健康系统的时间是一致的吗 HOT 2
- 如何获取某一天进行抢票呢 HOT 2
- 截取验证码问题 HOT 1
- 预订确认页面验证码问题 HOT 3
- 程序到点打开网站那一刻由于请求量太大,都会打不开,能否改成多次请求? HOT 1
- 预约确认界面的验证方式已更改 HOT 1
- 我做了一个这个网站蹲票的程序,和你一样也是利用Selenium实现的~ HOT 3
- Chrome自动关闭 HOT 2
- ModuleNotFoundError: No module named 'requests' HOT 1
- 是否登入碼不能識別? HOT 14
- Chrome运行关闭! HOT 6
- 请问目前有没有金巴的? HOT 1
- 腾讯空间点选验证 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jiankangyizhan.