Home > other >  The selenium how to position layer. The open pop-up page?
The selenium how to position layer. The open pop-up page?

Time:09-27


All bosses:

I do UI automation scripts in selenium, today met a problem, is in the page by clicking on a button when js use layer. The open opens a Dialog,

I didn't get to use the alert, by developer tools look to open the Dialog background request returns an HTML page, the Dialog is to show the HTML inside.

Now don't know how to get to the dom? For help

CodePudding user response:

Switch frame - the switch_to. Alert. The accept ()

CodePudding user response:

Switch frame:
Self. Driver. Switch_to. Default_content ()
Self. Driver. Switch_to. Frame (" mainFrame ")
  • Related