Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
open a new window
#1
Hello guys Im using python and selenium

I know the code Drive.find_element_byXpath("...").click()
But I want to open in a new window, not in the same window. do you guys know some way to do?
Reply
#2
you would use browser.get(), same as for first page.
Reply
#3
Thank you for your help, but that do not work, the button I want to open have a different link every day or hour. I need something like we do with the mouse, right click and open link in new tab.
Reply
#4
this would be a lot easier if you show your code.
Whatever you use to locate the link, yo an append .click()
to get next page.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020