2170/can-we-use-selenium-to-work-with-already-open-browser-session
Yup its possible. Instead of a new instance, you can use the existing instance's sessionID to perform the test on the same instacne. Its done by using this:
webdriver.WebDriver.attachToSession(executor, session_id);
More details about the documentation here: https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/lib/webdriver_exports_WebDriver.html#WebDriver.attachToSession
Hello,
Executor The executor to use when sending commands to the browser.
Hope it helps!! Thank You!!
To find the executor and the session_id for the currently opened webpage follow the below steps:
1.open a driver
driver = webdriver.Firefox() #python
2.Extract to session_id and _url from driver object.
url = driver.command_executor._url session_id = driver.session_id
Nope, it can't be done. It's one ...READ MORE
First Install Python based on the Operating ...READ MORE
Hi , we have inbuilt method Maximize(). driver.Manage().Wind ...READ MORE
Hello @Nishant, follow these steps to use ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
There are a couple of options for ...READ MORE
It is indeed possible to get http ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.