Hay,
I try to click the Spotify Play button with Python
browser.find_element('<button class="btn btn-green false">PLAY</button>').click()
What is the correct code line to click required button?
Hay,
I try to click the Spotify Play button with Python
browser.find_element('<button class="btn btn-green false">PLAY</button>').click()
What is the correct code line to click required button?
You might need to update your code as
browser.find_element('xpath', '//button[.="PLAY"]').click()
Note that you should pass 2 arguments to find_element
method:
P.S. Also add browser.maximize_window()
to the beginning of script to set browser fullscreen mode (DOM might differs due to different browser window size)