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

Method test_tinymce

examples/test_tinymce.py:6–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TinyMceTests(BaseCase):
6 def test_tinymce(self):
7 if self.headless:
8 self.goto_if_not_url("about:blank")
9 self.skip("Skip this test in headless mode!")
10 self.goto("https://seleniumbase.io/tinymce/")
11 self.wait_for_element("div.mce-container-body")
12 self.click('span:contains("File")')
13 self.click('span:contains("New document")')
14 self.click('span:contains("Paragraph")')
15 self.click('span:contains("Heading 2")')
16 self.switch_to_frame("iframe")
17 self.add_text("#tinymce", "Automate anything with SeleniumBase!\n")
18 self.switch_to_parent_frame()
19 self.click("button i.mce-i-image")
20 self.type('input[aria-label="Width"].mce-textbox', "300")
21 image_url = "https://seleniumbase.github.io/img/sb_logo_10.png"
22 self.type("input.mce-textbox", image_url + "\n")
23 with self.frame_switch("iframe"):
24 self.click("h2")
25 self.post_message("Automate anything with SeleniumBase!")
26 self.click('span:contains("File")')
27 self.click('span:contains("Preview")')
28 self.switch_to_frame('iframe[sandbox="allow-scripts"]')
29 self.post_message("Learn SeleniumBase Today!")

Callers

nothing calls this directly

Calls 11

skipMethod · 0.80
add_textMethod · 0.80
frame_switchMethod · 0.80
goto_if_not_urlMethod · 0.45
gotoMethod · 0.45
wait_for_elementMethod · 0.45
clickMethod · 0.45
switch_to_frameMethod · 0.45
typeMethod · 0.45
post_messageMethod · 0.45

Tested by

no test coverage detected