9mohit2 has asked for the wisdom of the Perl Monks concerning the following question:

Hi can someone please help me with some documentation for working with site having iframes using selenium in Perl. I am using Selenium::Chrome module. But I am not able to get elements inside the iframes also not getting syntax to switch back to default page content.

  • Comment on Automating site having iframes using Selenium

Replies are listed 'Best First'.
Re: Automating site having iframes using Selenium
by marto (Cardinal) on Oct 21, 2016 at 11:32 UTC

    I don't use this, out of curiosity and waiting for some builds to pass testing I looked at the documentation. Look at the switch_to_frame method. If in doubt always read documentation.

Re: Automating site having iframes using Selenium
by Corion (Patriarch) on Oct 21, 2016 at 11:34 UTC

    In my experience, you cannot switch back to an upper frame using Selenium. But I never deeply used Selenium except for browser automation, which Selenium is not intended for.