SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Having problem coming out of frame

    I had to select an item in the frame so i used the following code
    driver.FindElelemtByid("idSearch")
    driver.SwitchTo().Frame("A").SwitchTo().Frame("B") .FindElelemtById("test").click() -- This works fine
    Now i want to comeoutside of the frame and it's saying, element not found. Can someone please help?

    Thanks

  2. #2
    Advanced Member tarun kumar's Avatar
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    647
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Having problem coming out of frame

    driver.switchTo.defaultContent()

    Should get you to out of frame.

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Having problem coming out of frame

    Thanks Tarun. I had tried to use defaultContent but it did not work. I also user SwitchTo.Frame(relative=up) as welll as relative=top but unsuccessful. When i use IDE to record it also comes with relative=up, however it does not work. Any other suggesstions?

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Having problem coming out of frame

    Sorry about my previous response. yes, the SwitchTo.defaultContent() works now. there was some other issues i believe that were causing the problem. Thanks for all your help Tarun.

  5. #5
    Advanced Member tarun kumar's Avatar
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    647
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Having problem coming out of frame

    glad you got through

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:03 AM.

Copyright BetaSoft Inc.