geckodriver

Selenium : How to stop geckodriver process impacting PC memory, without calling driver.quit()?

不羁岁月 提交于 2019-11-25 22:47:48
问题 There is a test, smth like: import //needed imports public class TestClass{ WebDriver driver; @Before public void setUp() { //some code } @Test public void test1() { //some code, including init of driver (geckodriver) } //@After // public void tearDown() { // driver.quit(); //} } So, I inited geckodriver, and successfully running my tests, using firefox instances. But I want Not to close firefox window after each run, because I just want to analyse what I have, and fix any needed, after test

Selenium using Python - Geckodriver executable needs to be in PATH

隐身守侯 提交于 2019-11-25 21:49:30
问题 I\'m new to programming and started with Python about 2 months ago and am going over Sweigart\'s Automate the Boring Stuff with Python text. I\'m using IDLE and already installed the selenium module and the Firefox browser. Whenever I tried to run the webdriver function, I get this: from selenium import webdriver browser = webdriver.Firefox() Exception :- Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x00000249C0DA1080>> Traceback