Pycharm Pro version has an option to rerun crashed tests. I do not have the luxury to afford the pro version so Im using the community version which does not have the rerun test option(to my knowledge).
My script has no problems but the webpage that Im using after a few hours will refresh and log the user out such that the commands in my script return :element not found.
I tried using the method of handle error to rerun the whole script and open a new browser after such an incident. The problem is that the test runs without even running the contents:
i =10
while i<10:
# get_webpagage_and_login_so_forth
try:
# dosomething()
except:
pass
I expected after the script crashes it will pass and return to the first loop of opening a new browser but it does not. Please help. excuse my shortened version of code
script has no problems but the webpage that Im using after a few hours will log the user out such that the commands in my script return :element not found.by this do you mean your script run for hours? Think to refactor your code.