How to select an input that is inside a frameset - webdriver selenium [closed]
I want to select an input that have framesets and frame inside it. I cant select inputs because they appears to be inside a frame. So how i can recognize the frames and change into it? so i can select the inputs
python selenium-webdriver
closed as too broad by JeffC, jpp, greg-449, idursun, user6910411 Nov 22 '18 at 14:40
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I want to select an input that have framesets and frame inside it. I cant select inputs because they appears to be inside a frame. So how i can recognize the frames and change into it? so i can select the inputs
python selenium-webdriver
closed as too broad by JeffC, jpp, greg-449, idursun, user6910411 Nov 22 '18 at 14:40
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52
add a comment |
I want to select an input that have framesets and frame inside it. I cant select inputs because they appears to be inside a frame. So how i can recognize the frames and change into it? so i can select the inputs
python selenium-webdriver
I want to select an input that have framesets and frame inside it. I cant select inputs because they appears to be inside a frame. So how i can recognize the frames and change into it? so i can select the inputs
python selenium-webdriver
python selenium-webdriver
edited Nov 22 '18 at 3:52
JeffC
12.5k41533
12.5k41533
asked Nov 22 '18 at 1:14
Joangel De La RosaJoangel De La Rosa
355
355
closed as too broad by JeffC, jpp, greg-449, idursun, user6910411 Nov 22 '18 at 14:40
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by JeffC, jpp, greg-449, idursun, user6910411 Nov 22 '18 at 14:40
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52
add a comment |
1
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52
1
1
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52
add a comment |
1 Answer
1
active
oldest
votes
See the following documentation, it's as simple as:
driver.switch_to.frame(‘frame_name’)
Or, you can use the frame's index:
driver.switch_to.frame(1)
You can even use any of the find_elements
functions:
driver.switch_to.frame(driver.find_elements_by_tag_name(“iframe”)[0])
If you want to then return to the default content, you can simply call:
driver.switch_to.default_content()
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
See the following documentation, it's as simple as:
driver.switch_to.frame(‘frame_name’)
Or, you can use the frame's index:
driver.switch_to.frame(1)
You can even use any of the find_elements
functions:
driver.switch_to.frame(driver.find_elements_by_tag_name(“iframe”)[0])
If you want to then return to the default content, you can simply call:
driver.switch_to.default_content()
add a comment |
See the following documentation, it's as simple as:
driver.switch_to.frame(‘frame_name’)
Or, you can use the frame's index:
driver.switch_to.frame(1)
You can even use any of the find_elements
functions:
driver.switch_to.frame(driver.find_elements_by_tag_name(“iframe”)[0])
If you want to then return to the default content, you can simply call:
driver.switch_to.default_content()
add a comment |
See the following documentation, it's as simple as:
driver.switch_to.frame(‘frame_name’)
Or, you can use the frame's index:
driver.switch_to.frame(1)
You can even use any of the find_elements
functions:
driver.switch_to.frame(driver.find_elements_by_tag_name(“iframe”)[0])
If you want to then return to the default content, you can simply call:
driver.switch_to.default_content()
See the following documentation, it's as simple as:
driver.switch_to.frame(‘frame_name’)
Or, you can use the frame's index:
driver.switch_to.frame(1)
You can even use any of the find_elements
functions:
driver.switch_to.frame(driver.find_elements_by_tag_name(“iframe”)[0])
If you want to then return to the default content, you can simply call:
driver.switch_to.default_content()
edited Nov 22 '18 at 1:45
answered Nov 22 '18 at 1:40
codycody
6,09121125
6,09121125
add a comment |
add a comment |
1
Possible duplicate of Switching iframes with Python/Selenium
– JeffC
Nov 22 '18 at 3:52