1

I'm trying to count my Facebook messages with friends, using Selenium Webdriver.

The messenger window has a frame containing the messages, but it must be scrolled to the start of the message history for all of the messages to be counted. My issue is with selecting that frame.

Upon inspecting the element, it notes that it is a <div> with an id of "js_1", which is not a frame tag (<iframe>). Thus driver_switch_to.frame() is not a direct option.

Another suggestion was to driver_switch_to.frame(driver.find_element_by_id("js_1")), or something of the like, but this also did not work.

Any ideas?

iamdanchiv
  • 4,052
  • 4
  • 37
  • 42
Rik Johnson
  • 111
  • 11

0 Answers0