1

I will try data scrape a website with python. im using beatifulsoup and requests.

If I click text link, other information is display on popup window. I want to get the data on this popup window.

I must use selenium, but I don't use to know it.

I search, but I don't find about popup windows.

I can click this text link with selenium and popup windows is open, but I can't get this information opened popup window.

How can get this information on popup windows with selenium?

ou_ryperd
  • 2,037
  • 2
  • 18
  • 23
mgunez
  • 21
  • 3
  • thanks for answer but my quesiton is different. Summary :- 1- Click the text link and popup windows is opening 2- Informations are display on popup windows 3-Get this information 4-And close popup windows – mgunez May 12 '17 at 17:17
  • Bad English is not a problem, but you know, "I" is always uppercase in English. – peterh May 14 '17 at 18:14
  • I will pay attention. Thanks – mgunez May 15 '17 at 15:12

1 Answers1

1

You can use this to switch to the iframe

iframe = driver.switch_to.frame

then to switch back to the main body.

driver.switch_to_default_content()
Austin Johnson
  • 697
  • 11
  • 23