(self)
| 4 | |
| 5 | class 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!") |
nothing calls this directly
no test coverage detected