python - multiprocessing is not doing multi process -


in python have created 4 process open multi tabs simultaneously tabs opened in sequence not parrellelly.

code :

from selenium import webdriver multiprocessing import process selenium.webdriver.common.keys import keys   def func1(driver):     driver.find_element_by_tag_name('body').send_keys(keys.control + 't')     driver.switch_to.window(driver.window_handles[-1])     driver.get('http://www.rediff.com')     driver.implicitly_wait(20)     driver.get('http://yatra.com')     driver.implicitly_wait(50)     driver.get('http://makemytrip.com')  def func2(driver):     driver.find_element_by_tag_name('body').send_keys(keys.control + 't')     driver.switch_to.window(driver.window_handles[-1])     driver.get('http://www.stackoverflow.com')     driver.implicitly_wait(10)     driver.get('http://www.facebook.com')     driver.refresh()   def func3(driver):     driver.find_element_by_tag_name('body').send_keys(keys.control + 't')     driver.switch_to.window(driver.window_handles[-1])     driver.get('http://www.yahoo.com')     driver.refresh()     if __name__=='__main__':      driver = webdriver.chrome()      driver.get('https://www.google.com')      p1 = process(target = func1(driver))      p1.start()      p2 = process(target = func2(driver))      p2.start()      p3= process(target=func3(driver))      p3.start() 

what reason? how open 3 tabs simultaneously , assign different task different tabs?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -