How to select an input that is inside a frameset - webdriver selenium [closed]












-1















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










share|improve this 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
















-1















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










share|improve this 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














-1












-1








-1








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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












1 Answer
1






active

oldest

votes


















2














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()






share|improve this answer
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    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()






    share|improve this answer






























      2














      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()






      share|improve this answer




























        2












        2








        2







        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()






        share|improve this answer















        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()







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 22 '18 at 1:45

























        answered Nov 22 '18 at 1:40









        codycody

        6,09121125




        6,09121125

















            Popular posts from this blog

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules