Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

teardown not work in cls(basecase) #3382

acdc7777 started this conversation in General
Discussion options

because --uc !!

BaseCase.main(name, file ,"--uc" ,"-s" ,)

class OverrideDriverTest(BaseCase):

def test_driver_override(self):
 self.maximize_window()
 self.open("https://seleniumbase.io/demo_page")
 self.type("#myTextInput", "This is Automated")
 self.set_value("input#mySlider", "100")
 self.select_option_by_text("#mySelect", "Set to 100%")
 self.click("#checkBox1")
 self.drag_and_drop("img#logo", "div#drop2")
 self.click('button:contains("Click Me")')

thanks

You must be logged in to vote

Replies: 1 comment

Comment options

See the example with custom setUp() and tearDown():
SeleniumBase/examples/boilerplates/base_test_case.py

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /