MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / test_set_content_to_frame

Method test_set_content_to_frame

examples/iframe_tests.py:39–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.highlight('iframe[title="Iframe Example"]')
38
39 def test_set_content_to_frame(self):
40 self.goto("https://seleniumbase.io/w3schools/iframes.html")
41 self.assert_title("iframe Testing")
42 self.click("button#runbtn")
43 self.set_content_to_frame("iframeResult")
44 self.highlight('iframe[title="Iframe Example"]')
45 self.set_content_to_frame("iframe")
46 self.assert_element_not_visible("iframe")
47 self.highlight("body")
48 self.set_content_to_parent()
49 self.highlight('iframe[title="Iframe Example"]')
50 self.set_content_to_default()
51 self.click("button#runbtn")
52 self.highlight("#iframeResult")

Callers

nothing calls this directly

Calls 8

set_content_to_frameMethod · 0.80
set_content_to_parentMethod · 0.80
gotoMethod · 0.45
assert_titleMethod · 0.45
clickMethod · 0.45
highlightMethod · 0.45

Tested by

no test coverage detected