I have no idea how to click this button. It has identifiers such as an image and text but i'm not sure how i use those to my advantage.
I've tried using the XPATH, i've tried using the text, i've tried using the link of the image, and i cant quite get it to work
MY CODE:
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.LINK_TEXT, "Continue Watching"))).click()
BUTTON HTML:
<button style="margin-top: 15px;
width: 240px;
height: 46px;
background-color: #69b8d6;
margin: 50px auto;
border-radius: 4px;
color: white;
display: block;
margin-left: 159px;
font-size: 16px;"><img style="padding-right:15px;" src="http://img.encrave.tv/global/watchCamcorder.png">Continue Watching</button>
My apologies if this button html turns into an actual button im not really sure how to deal with that.
My expected results are to "Find and wait for the button to be clickable." and then click it. My actual results are nothing happens and an error pops up in the console.
raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=49951): Max retries exceeded with url: /session/4100d1e939db4a44f287a50f5e9be234/element (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))