如何在无头模式下查找帧-Python

时间:2019-12-16 19:58:58

标签: python selenium frame google-chrome-headless

frame = self.driver.find_elements_by_tag_name("iframe")[0]
self.driver.switch_to.frame(frame)
  

消息:没有这样的框架     (会议信息:headless chrome = 62.0.3202.94)     (驱动程序信息:chromedriver = 2.35.528139(47ead77cb35ad2a9a83248b292151462a66cd881),平台= Linux 4.14.138-99.102.amzn2.x86_64 x86_64)   :NoSuchFrameException

0 个答案:

没有答案