1

<iframe ng-repeat="contentFrame in contentFrames" src="/PrivateArea/MDL_Action/Default.aspx?rid=241&amp;ifrsafe=1" class="tg_pageFrame ng-scope ng-isolate-scope" iframe-onload="contentFrame.pageNavigated()"></iframe>

how do I switch to this frame in python selenium

I watched some tutorial on youtube and after using control F in elements this iframe is number 10 out of 12 iframes

1 Answer 1

2

In case there are more then one identical frames you can select required frame by index:

iframe = driver.find_elements_by_tag_name('iframe')[9]
driver.switch_to.frame(iframe)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.