Multi-threading in selenium python
问题 I am working on a project which needs bit automation and web-scrapping for which I am using Selenium and BeautifulSoup (python2.7) . I want to open only one instance of a web browser and login to a website, keeping that session , I am trying to open new tabs which will be independently controlled by threads, each thread controlling a tab and performing their own task. How should I do it? An example code would be nice. Well here's my code: def threadFunc(driver, tabId): if tabId == 1: #open a