Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

[SeleniumIDE] Navigating between frames produces wrong output #8433

Open
lukeis opened this issue Mar 4, 2016 · 3 comments
Open

[SeleniumIDE] Navigating between frames produces wrong output #8433

lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 8433

What steps will reproduce the problem?
1. open attached frameset.html from zip
2. assert test in left frame
3. assert test in right frame

What is the expected output?
After 2. SeleniumIDE should switch frame

What do you see instead?
SeleniumIDE returns selectWindow instead, which does not work.

Manually, I corrected the output in Python to:
driver.switch_to.parent_frame()
driver.switch_to.frame("mainframe")

Then it works.

Also, the export to Python2 Unittest Webdriver is defect. Above example gives:

def test_frameset(self):
 driver = self.driver
 driver.get(self.base_url + "/frametest/frameset.html")
 # ERROR: Caught exception [ERROR: Unsupported command [selectFrame | leftFrame | ]]
 self.assertEqual("left", driver.find_element_by_css_selector("p").text)
 # ERROR: Caught exception [ERROR: Unsupported command [selectWindow | name=mainFrame
| ]]
 self.assertEqual("main", driver.find_element_by_css_selector("p").text)
 # ERROR: Caught exception [ERROR: Unsupported command [selectWindow | null | ]]



SeleniumIDE version: 2.8.0
OS: Win 8.1
Browser: Firefox
Browser version: 35.0.1


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by juergen.gmach on 2015-01-28 16:28:50


- _Attachment: [frametest.zip](https://storage.googleapis.com/google-code-attachments/selenium/issue-8433/comment-0/frametest.zip)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2015-02-02 21:33:29

  • Labels added: Component-IDE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2015-02-02 21:35:16

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:47:30

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant