Why I can't inherit one class from another? #1802
SergeyGuschin
started this conversation in
General
Replies: 1 comment 2 replies
-
Two issues. One, you named your method Here's how your code would look when using it: from seleniumbase import BaseCase
class HomePage:
def go_to_home(self, sb):
sb.open("https://you.com/search?q=who+are+you&tbm=youchat&cfr=chat")
class MyTestClass(BaseCase):
def test_data_url_page(self):
HomePage().go_to_home(self) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I I keep getting this error.
I have two py folders one folder named "pages" the other folder "tests" each folder has a py file ./pages/home_page.py and ./tests/test_home.py
Here is my script for home_page.py
This is test_home.py
Beta Was this translation helpful? Give feedback.
All reactions