What does #document mean?

后端 未结 1 513
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 03:55

This is the HTML file I have. I am trying to use Selenium-Webdriver API along with ChromeDriver to send_keys to an input

相关标签:
1条回答
  • 2020-12-03 04:24

    Just to summarize on what I learnt and implemented.

    1. document is a virtual element, which doesn't really mean anything.

    2. If you have mulitple frames/framesets, you will have to switch frames.

      a. so first get to the default content. driver.switch_to_default_content()

      b. then get to the frame that you want to work with. frame = driver.find_element_by_name('mainFrame')

    3. Then play with the elements in that frame.

    0 讨论(0)
提交回复
热议问题