Skip to content
Discussion options

You must be logged in to vote

Hello @Binyamin999, and welcome!

Once you've installed seleniumbase, you can create a Python file like the one below, and then run it with pytest from the terminal. :)

from seleniumbase import BaseCase class DemoSiteTests(BaseCase): def test_demo_site(self): self.open("https://seleniumbase.io/demo_page") self.type("#myTextInput", "This is Automated") self.type("textarea.area1", "Testing Time!\n") self.type('[name="preText2"]', "Typing Text!") self.assert_text("This Text is Green", "#pText") self.click("#myButton") self.assert_text("This Text is Purple", "#pText") 

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@mdmintz
Comment options

@Binyamin999
Comment options

@mdmintz
Comment options

@Binyamin999
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants