selenium视频点击播放,videojs:

import selenium
import selenium.webdriver
import time
#网页很多网页源码不在页面上显示,一些通过js或者json方式来传输,可以通过看str等超链接,来分析源码

url="http://videojs.com/"
driver=selenium.webdriver.Chrome()
driver.get(url)
time.sleep(3)
vedio=driver.find_element_by_class_name("vjs-big-play-button")  #播放的位置
vedio.click()  #点击
#print(driver.execute_script())
time.sleep(10)
driver.close()

 

相关文章:

  • 2017-12-11
  • 2020-01-06
  • 2020-03-24
  • 2020-07-14
  • 2018-07-11
  • 2021-08-31
  • 2021-11-22
  • 2021-11-24
猜你喜欢
  • 2018-03-22
  • 2021-11-16
  • 2021-11-18
  • 2021-10-07
  • 2021-12-14
  • 2019-01-07
  • 2021-11-16
  • 2019-08-07
相关资源
相似解决方案