I Have an application developed using Electron+Chromium when browser launched without any URL there will be a popup.
This is a modal popup and using selenium I'm unable to handle this popup.
HTML Code for Modal popup
<div class="mt-4">
<button id="btnCancel" class="btn btn-secondary btn-danger btn-radius" data-i18n="checkSecurityPage.quit">Quit</button>
<button id="btnNext" class="btn btn-primary btn-radius" data-size="l" data-style="slide-left" data-i18n="checkSecurityPage.next">Next</button>
</div>
</div>
Please give any suggestions for it. Thanks
Jagannatha MvJagannatha Mv
asked Nov 4, 2018 at 13:08
-
Can you add HTML code for the modal mentioned?Bharadwaj Pendyala– Bharadwaj Pendyala2018年11月04日 13:12:51 +00:00Commented Nov 4, 2018 at 13:12
-
Added the HTML CodeJagannatha Mv– Jagannatha Mv2018年11月04日 13:19:25 +00:00Commented Nov 4, 2018 at 13:19
-
You will probably need something as browser.switchTo() because modals are not a part of the same window.Saša Zejnilović– Saša Zejnilović2018年11月06日 06:17:05 +00:00Commented Nov 6, 2018 at 6:17
1 Answer 1
Did you try using below XPath
//*[@id="btnCancel"]
to quit
//*[@id="btnNext"]
to proceeding to next
answered Nov 4, 2018 at 13:22
default