On python 3.11, I'm trying to use a method from another class, like this:
folder name: anyfunctions
script name: basicactions.py
from seleniumbase import BaseCase
class Firstfunction(BaseCase):
def login(self):
self.open("https://randomsite/authentication/signin")
self.wait_for_element("#username")
self.click(".d-grid")
Then, I'm trying to create a test using Selenium with the following code:
folder name: tests
script name: test_home.py
from seleniumbase import BaseCase
from anyfunctions import basicactions
class AnyTestName(BaseCase, basicactions):
def test_login(self):
basicactions.Firstfunction.login()
That, I was expecting to run the login method, but the following error appears:
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Am I forgetting to add something to call the class correctly? Thanks