This repository was archived by the owner on Nov 29, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 194
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
[SeleniumIDE] Navigating between frames produces wrong output #8433
Copy link
Copy link
Open
Description
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)_