What does #document mean?

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.

Leave a Comment