i'm new coding using python , it's libraries, , new stackoverflow apologize if i'm not acquainted things.
anyway question. i'm trying write code automates playing video website that. here's example link:
http://www.shush.se/index.php?id=164&show=southpark
i've tried these methods:
driver.find_element_by_id("playerload").click() driver.find_elements_by_xpath("./html/body/table/tbody/tr/td/div[@id='load']/div[@class='player']/div[@id='playerload']/div[1]")
but nothing happens. program exits without error video not start playing. tried clicking id "jw6playerid5040619_wrapper" number associated changes every time page loads.
any advice? in advance!
even though don't know exact id, know start "jw6playerid". following works me:
elements = driver.find_elements_by_xpath("//*[contains(@id, 'jw6playerid')]") elements[0].click()