Groups
Groups
Sign in
Groups
Groups
日本Seleniumユーザーコミュニティ
Conversations
Labels
About
Send feedback
Help
Chromeのダイアログのボタン
1,289 views
Skip to first unread message
T C
unread,
Feb 27, 2021, 3:34:25 AM
2/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Seleniumユーザーコミュニティ
はじめまして。
Python の webdriver で、
chromeで電話のtelリンクボタンを押した際に出るダイアログの
ボタン選択処理が上手くいかず困っております。
上記の場合ですと、「Microsoft Edgeを開く」 を押したいのです。
因みに以下URLの
Alert(driver).accept()
では上手く動作しませんでした。
(エラー:selenium.common.exceptions.NoAlertPresentException: Message: no such alert)
https://www.seleniumqref.com/api/python/window_set/Python_accept_dismiss.html
初歩的な事かもしれませんが、ご存知の方ご教示頂ければ幸いです。
何卒宜しくお願い致します。
伊藤望
unread,
Feb 28, 2021, 3:28:44 AM
2/28/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Seleniumユーザーコミュニティ
伊藤です。
このダイアログをSeleniumで操作することはできないので、このダイアログが出ないようにChromeDriverに指定するプロファイルなどのオプションを調整するのがよいと思います(それができたとしてもChromeから開かられるEdgeはおそらくSeleniumで操作できないと思いますが)。
やったことがないので私も詳しくはわからないのですが、下記リンクのような情報が参考になるのではないかと思います。
https://stackoverflow.com/questions/29554564/bypass-external-protocol-request-popup-during-selenium-automation
https://stackoverflow.com/questions/44926101/how-to-allow-protractor-test-to-register-custom-protocol-handler-in-chrome?rq=1
T C
unread,
Mar 3, 2021, 4:26:05 AM
3/3/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Seleniumユーザーコミュニティ
伊藤望 様
ご返信、アドバイスありがとうございます。
ご助言頂いた、プロファイルの調整を行ってみたいと思います。
以上よろしくお願い致します。
2021年2月28日日曜日 17:28:44 UTC+9 伊藤望:
Reply all
Reply to author
Forward
0 new messages