open a new window - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: open a new window (/thread-25509.html) |
open a new window - windows11 - Apr-01-2020 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? RE: open a new window - Larz60+ - Apr-01-2020 you would use browser.get(), same as for first page. RE: open a new window - windows11 - Apr-02-2020 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. RE: open a new window - Larz60+ - Apr-02-2020 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. |