Python Forum
webdriver.remote to connect back existing browser without open new browser?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
webdriver.remote to connect back existing browser without open new browser?
#6
I follow this guideline here Set ChromeOption with RemoteDriver
So my code would like like:
sID = ch.get("session_id")
sURL = ch.get("url")

options = webdriver.ChromeOptions()
## options.add_argument('--headless') or options.add_argument('--no-startup-window')

self.driver = webdriver.Remote(command_executor=sURL, desired_capabilities=options.to_capabilities())
self.driver.close()
self.driver.quit()
self.driver.session_id = sID
self.newTab()
self.switchLastTab()
In both way, they still will launch a new browser window.
Reply


Messages In This Thread
RE: webdriver.remote to connect back existing browser without open new browser? - by gahhon - Feb-25-2019, 01:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  m3u8 using build-in browser downloader? kucingkembar 3 3,301 Mar-29-2024, 01:47 AM
Last Post: kucingkembar
  Unable to convert browser generated xml to parse in BeautifulSoup Nik1811 0 1,357 Mar-22-2024, 01:37 PM
Last Post: Nik1811
  Creating a Browser Extension using Python j49857 3 7,049 Feb-13-2024, 10:49 PM
Last Post: j49857
  Need help for script access via webdriver to an open web page in Firefox Clixmaster 1 2,441 Apr-20-2023, 05:27 PM
Last Post: farshid
  [Solved] Browser won't parse text from yaml loaded into Jinja SpongeB0B 1 1,652 Jul-07-2022, 09:37 PM
Last Post: SpongeB0B
  Problem with Selenium webdriver Fred 1 2,902 Jan-10-2022, 05:45 PM
Last Post: Larz60+
  Connect to existing Firefox session with Selenium euras 0 7,141 Feb-11-2021, 02:54 PM
Last Post: euras
  How do I iterate over an array and perform actions using selenium chrome webdriver? master 0 3,245 Sep-14-2020, 05:28 AM
Last Post: master
  Which webdriver is required for selenium in Pydroid App Rahatt 1 8,144 Jul-31-2020, 01:39 AM
Last Post: Larz60+
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 5,081 Jun-07-2020, 04:42 PM
Last Post: samlee916

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020