I have been using the Selenium and Python2.7, on Firefox.
I would like it to work like the following, but I do not know how to write code.
#[Click]lowermost(highest quality) radio button
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): driver.switch_to.frame(driver.find_element_by_css_selector(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): driver.switch_to.frame(driver.find_element_by_name(name))