User8392 User8392 - 1 year ago 87
Python Question

How to identify and switch to the frame source in selenium

I have been using the selenium and Python2.7, the Firefox.

I want to think that the work, such as the following.
However, I do not know how to write code(#).

#[Click]lowermost(highest quality) radio button
#[Click]Proceed button

Help me, plz...

Thanks in advance for your answer.

Answer Source

You are able to get frame locator value in HTML code which is specified in iframes tag. u can move up from where your locator value is existed in HTML code.

This function is suitable:

def frame_switch(css_selector):

If you are just trying to switch to the frame based on the name attribute, then you can use this:

def frame_switch(name):
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download