Python Forum

Full Version: open a new window
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
you would use browser.get(), same as for first page.
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.
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.