HI I am trying to automate a login process which need to scroll a sliding button to login,
the login process was attached in the following picture,
I went through some reference page that the draging need to calculate the distance between the background and the scroll button using OpenCV, and which need to extract two image , i try the get_attribute method to extract , but with none of them success: get_attribute('src') My code was as follow:
code:
slider_button = driver.find_element(by=By.XPATH,value= '//div[@class="geetest_slider_button"]')
print(f"slider_button size = {slider_button.size}")
print(f"slider_button = {slider_button}")
print(slider_button.get_attribute('src'))
And the return result was:
slider_button size = {'height': 66, 'width': 66}
slider_button = <selenium.webdriver.remote.webelement.WebElement (session="2fb866f3b809cb9b932ed4e6e26a8ba9", element="adbd736d-d1a4-44a0-8ac2-625f1da9382b")>
None
I was appreciate if someone can help , thanks