Dec-29-2018, 03:29 AM
can any one tell me what are the methods to work with multiple tab in firefox using selenium & Py 3?
I have tried to open a new tab which is not happening ?
here are my code:
I have tried to open a new tab which is not happening ?
here are my code:
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from bs4 import BeautifulSoup import requests browser = webdriver.Firefox() browser.get('http://www.google.com') browser.find_element_by_tag_name('body').send_keys(Keys.COMMAND + 't') search = browser.find_element_by_name('q')i had tried this code but didnt worked, Am i doing anything wrong in this ??