I am facing some issue in my test script. What am I doing wrong here? Before that just an overview beforehand, its website testing in python and selenium using pytest. My selenium is v4.18.1 and Chrome v122.0.6261.112
conftest.py
Test_Regis.py:
I got this attribute error. But same I have written in very basic way. I have also written very basic of the same automation script. Below is same code as above.
This works fine. I do not understand what is wrong with the above code.



You need to return the
drivercreated insetup. I would also renamesetuptodriver:The key here is to return the driver you created.