Bug 1328298 - Call correct element retrieval function; r?automatedtester
`session.find` is not a function.
MozReview-Commit-ID: FZ9OrZSpWyb
--- a/testing/web-platform/meta/webdriver/navigation.py.ini
+++ b/testing/web-platform/meta/webdriver/navigation.py.ini
@@ -3,15 +3,11 @@
disabled:
if (os == "linux") and (bits == 64) and debug: https://bugzilla.mozilla.org/show_bug.cgi?id=1318724
[navigation.py::test_get_current_url_no_browsing_context]
expected: ERROR
[navigation.py::test_get_current_url_alert_prompt]
expected: FAIL
- [navigation.py::test_get_current_url_nested_browsing_contexts]
- expected: FAIL
-
[navigation.py::test_get_current_url_matches_location]
expected:
if debug: FAIL
-
--- a/testing/web-platform/tests/webdriver/navigation.py
+++ b/testing/web-platform/tests/webdriver/navigation.py
@@ -103,11 +103,11 @@ def test_get_current_url_nested_browsing
def test_get_current_url_nested_browsing_contexts(session):
session.url = two_frames_doc
top_level_url = session.url
outer_frame = session.find.css("iframe", all=False)
session.switch_frame(outer_frame)
inner_frame = session.find.css("iframe", all=False)
- session.switch_frame(frame)
+ session.switch_frame(inner_frame)
assert session.url == top_level_url