Skip to content

Can not switch frames #142

Open
Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
Operating system and version (32/64bit) : Win 7 Professional 32bit
.Net Framework version : 4.0.30320
Office name and version(32/64bit) : Office 2010 Professional Plus 2010
Browser name and version : Firefox 35.0.1
SeleniumWrapper version : 1.0.2.0

What steps will reproduce the problem with a public website ?
1. I was not able to find a public site with a similar structure

I navigate to a page that has at least 4 frames.
There is on called "main" that has 2 frames inside called "menu" and "text".
I navigate to "menu", click a link, then i need to click a button in frame 
"text" and i can't switch frames.
Here is part of my code.

  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)

Works fine till this point.

  sel.switchToFrame ("text")

Access says can't find frame "text"

  sel.findElementById("ok").Click
  sel.waitForPageToLoad (30000)

I want to click a button and then get back to the beginning of the process.
I have to do this 70 times.

Original issue reported on code.google.com by [email protected] on 6 Mar 2015 at 12:52

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions