![](/img/trans.png)
[英]PopUp window not able to click on OK button which Is under Modal window class - Selenium [JAVA]
[英]How to enter data in child popup window fields and click ok button , when click radio button at main window
步驟1 :單擊主窗口中的單選按鈕
第二步 :彈出小窗口
步驟3 :應在文本字段中輸入數據,然后單擊確定按鈕
步驟4 :小窗口應關閉並返回主窗口。
我嘗試在java-selenium Web驅動程序中使用切換句柄概念,但未按預期工作。 有人可以提出任何解決方案嗎
您可以使用javax.swing.JOptionPane通過showInputDialog()函數完成它
如果您使用的是“自動窗口”命令,請不要忘記設置
Opt("WinSearchChildren", 1) ;0=no, 1=search children also
為了發現孩子。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.