I have been trying to make selenium play a specific song from a specific link but when done so on a new account, it just doesn't want to interact and gives me the:
could not locate the element
exception even though its visible, rendered (I can click on it manually) and I used different methods like xpath and class name (I'm stuck with css selector because it worked enough for me to this point). Here's the snippet of a part from this script since anything before it was just logging in, all of the modules I imported and some credentials I want to keep private like my emails and stuff:
driver.get('https://open.spotify.com/track/0WSEq9Ko4kFPt8yo3ICd6T?si=e2c993506d17435b&nd=1')
time.sleep(3)
driver.refresh()
time.sleep(2)
driver.find_element_by_class_name('PFgcCoJSWC3KjhZxHDYH').click