I'm testing a web UI using Selenium in Python. I've come to a test case where a button should be redirected to another page after clicking.
However, every time the code executes without any exceptions but still the page is not being redirected. I'm sure that the button gets clicked correctly, as the button animation and mouse cursor changes.
I tried with direct click method and also Javascript click method
`sign_in = driver.find_element(By.CSS_SELECTOR, "button[class='btn btn-primary-blue']")
sign_in.click()
driver.execute_script("arguments[0].click();", sign_in)`
and the element
`<div class="editorial-hero-banner--footer pb-35 pb-sm-0"><div class="SSOLogin__Container"><button type="button" class="btn btn-primary-blue">Sign in / Register</button></div></div>
<div class="SSOLogin__Container"><button type="button" class="btn btn-primary-blue">Sign in / Register</button></div>
<button type="button" class="btn btn-primary-blue">Sign in / Register</button>`