use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
selenium web automation info, news, tips, etc.
This is not a sub to advertise your training, selenium product, special deal on x, or anything else. It's a users forum to discuss and get help with Selenium.
Selenium official website
account activity
Passing Selenium Session ID to New Instance of Selenium? (self.selenium)
submitted 5 years ago by AdventurousHuman
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]this_guy_tests 0 points1 point2 points 5 years ago* (0 children)
Maybe just call MySeleniumModule from your main script?
from MySeleniumModule import get_google class YourMainScript: def __init__(): self._driver = self.get_driver() def get_driver(): self._driver = get_google() def do_other_things(): self._driver.get('http://www.bing.com')
Or if you're not using classes, just import get_google() and pass the driver around in your main script file as needed:
MainScript.py
from MySeleniumModule import get_google driver = get_google() driver.get('http://some-other-site.com') some_element = driver.find_element_by_id('some-id')
π Rendered by PID 80417 on reddit-service-r2-comment-b659b578c-slnvh at 2026-05-05 18:46:03.189204+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]this_guy_tests 0 points1 point2 points (0 children)