I have a very strange behaviour happening while automating a test suite were I access a website, click on a search bar and then look for certain information.
All my 200+ tests begin the same way with the exact same code and the first 177 pass perfectly but from test 178 and onwards it fails in the line of code where i find the search bar and then click on it.
To me this makes no sense but again, I´m quite new to automation and IT in general so I hope you people can give me a hand here.
The line that fails is the following one:
WebDriverWait(self.driver, 40).until(EC.presence_of_element_located((coupons_search_bar))).click()
Again, this works for 177 tests straight and then it fails in the following ones.
Thanks!
I changed the way I get to the coupons search bar in many ways but they work for the 177 first tests but fail for the following ones.
I cleaned the local storage and cache and nothing changed.