Home > database >  Why I cannot switch to Iframe on this website?
Why I cannot switch to Iframe on this website?

Time:10-04

I am trying to switch to Iframe on this link enter image description here

CodePudding user response:

In the link which you shared, iframe tag is inside 'Shadow DOM', which is why selenium throws exception

Try with JavaScript executor to access the web element in chrome, it will work.

For more details please do refer Handle Shadow DOM

  • Related