-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当弹出框是prompt提示框时,需要输入文本,seldom中怎么处理? #166
Comments
我又尝试了一下。 selenium 提供的 |
嗯,不过测试网站上,使用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
测试用网站:https://liushilive.github.io/html_example/index.html
![image](https://user-images.githubusercontent.com/103291191/220251044-093cdde5-1de6-4016-af80-ee1b0caed18b.png)
![image](https://user-images.githubusercontent.com/103291191/220257019-0213dd29-3425-40c2-858f-d43df740b3cd.png)
![image](https://user-images.githubusercontent.com/103291191/220258084-e02b1786-0421-4c20-8664-dd67f2237a44.png)
使用seldom进行web自动化,在prompt提示框时需要输入文本
在使用seleium时,可以选择
switch_to.alert
,然后直接send_keys
如下在seldom中没有
switch_to.alert
,有的是直接获取警告信息或者确定和取消,链式处理Steps中有alert,但是无法实现输入s.find("#b2").click().alert().type("shishi") s.accept()
The text was updated successfully, but these errors were encountered: