Open GoogleCodeExporter opened 8 years ago
Have you tried with a timeout in case the frame is not yet created while the
command is executed :
driver.switchToFrame "main", 3000
It could also mean that the current frame doesn't have the frame "text".
In this case you need reset the context:
driver.switchToDefaultContent
Can you provide the Html source code?
Original comment by florentbr
on 6 Mar 2015 at 6:42
Thank you for your quick and accurate replay.
My code now is:
sel.selectFrame ("main")
sel.selectFrame ("menu")
sel.Click "css=span.tree-label > img"
sel.waitForPageToLoad (10000)
sel.Click "//body[@id='document']/div[2]/div/div/span/img[2]"
sel.waitForPageToLoad (10000)
sel.Click "css=span.tree-label > a[title=""Tabela Resumo""]"
sel.waitForPageToLoad (10000)
sel.Click "//body[@id='document']/div[2]/div/div[2]/span/img[2]"
sel.waitForPageToLoad (30000)
sel.Click "xpath=(//a[contains(text(),'Report_Consumo')])"
sel.waitForPageToLoad (30000)
sel.switchToDefaultContent
sel.switchToFrame ("main")
sel.switchToFrame "text"
sel.findElementById("ok").Click
sel.waitForPageToLoad (30000)
And works fine!
Problem solved!
Thank you very much!
Original comment by pemif...@gmail.com
on 9 Mar 2015 at 10:27
Original issue reported on code.google.com by
pemif...@gmail.com
on 6 Mar 2015 at 12:52