0

When parsing, a pop-up window appears from which you need to get the data. if i use driver.page_source then it doesn't grab the code from the popup.

How do I real-time copy lines of html code using selenium?

mifirs
  • 11
  • 2
  • Hey, you might want to check out [this question](https://stackoverflow.com/questions/7263824/get-html-source-of-webelement-in-selenium-webdriver-using-python). Locating the popup and extracting its content is most likely the best way to go. – cybertschunk Jun 28 '22 at 08:52
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jun 28 '22 at 13:07

1 Answers1

0

I think that you could need the method switchTo. This method helps to change to iframe. Example Example