leochabi / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 1 forks source link

Switching between frame #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) :
.Net Framework version :4.0
Office name and version(32/64bit) :XP
Browser name and version :Firefox
SeleniumWrapper version :latest

In a window i switched to left Panel by the below code
selenium.switchToFrame ("scrollContainer")
then clicked on a button in the frame -scrollContainer
It opened a page on the right panel
now i need to locate a element on the new page which on the right panel

Please help hwow it can be achieved.

Also please provide when defaultcontent will be available.

driver.switchToDefaultContent()

Original issue reported on code.google.com by jhansi27...@gmail.com on 28 Aug 2014 at 10:58

GoogleCodeExporter commented 8 years ago
You need to switch the context to the new window:
driver.switchToWindow "windowName"

Original comment by florentbr on 28 Aug 2014 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by florentbr on 8 Sep 2014 at 5:42