Python Forum

Full Version: Web Scraping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

I would like to open a new tab in my opened browser and then read the content, I have tried with Selenium but I cannot find the way to open a new tab in the opened browser as I mentioned.

Thank you in advance
What do u want exactly? U can do it with selenium probably. Why do u need to open a new tab? U can use "get" method again ?
# Opens a new tab
# Switch to the newly opened tab
# Navigate to new URL in new tab
# Run other commands in the new tab here
You're then able to close the original tab as follows
# Switch to original tab
# Close original tab
# Switch back to newly opened tab, which is now in position 0
Or close the newly opened tab
# Close current tab
# Switch back to original tab