I want to get the input element in a modal dialog. I’ve already tried to switch frame, but it was not successful. Can anyone help? thankss
Here is the html of my modal:
<div id="modal-fids" class="modal fade" role="dialog" aria-hidden="true" style="display: none;">
<div id="overlay-fids" class="">
<div class="modal-dialog modal-lg">
...
I already tried with:
obj.FindElementByXPath("//*[@id='btn-show-fids']").Click
obj.SwitchToFrame obj.FindElementByXPath("//*[@id='modal-fids']")
obj.FindElementByXPath("//*[@class='col-lg-9']/label[1]/input").Click
New contributor
Neptun3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.