Context and logging (Flask+Pytest) for Selenium
I am testing (pytest) an application on Flask. I have an href
link that I want to test (it makes a transition to another page). The problem is that this link I have by convention appears on the page if the user is authorized with login_user()
(flask-login), so naturally the context of the Flask application is required. For the below presented “client” fixture there is both context and authorization, how to do the same for the “driver” fixture or is there a better approach?
Context and logging(flask+pytest) for silenium
I am testing (pytest) an application on “Flask”, I have an “href” link that I want to test (it makes a transition to another page), the problem is that this link I have by convention appears on the page if the user is authorized with “login_user()” (flask-login), so naturally the context of the application “Flask” is required. For the below presented “client” fixture there is both context and authorization, how to do the same for the “driver” fixture or is there a better approach ?