Closed GoogleCodeExporter closed 9 years ago
Issue 1141 has been merged into this issue.
Original comment by gmanikp...@chromium.org
on 30 Jun 2015 at 5:07
bhn2600@
thanks for filing bug, can you please try this workaround and let me know if
this helps you:-
'''
manually start chrome from terminal/command prompt with these command line
arguments --
google-chrome
--user-data-dir=/path/to/any/custom/directory/home/user/Desktop/Chromedir
--profile-directory="Profile 1" --remote-debugging-port=7878
1. make sure "Profile 1" is already existing in the same --user-data-dir (make
usre Profile 1 has necessary chrome://components/ to run Netflix when launched
manually)
2. you can use any free port in place of 7878
verify that http://localhost:7878 is running and returns value.
now connect to the remote-debugging-port=7878 via chromedriver with code below
Verify chrome://components/
'''
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
cr_options = Options()
cr_options.add_experimental_option('debuggerAddress','127.0.0.1:7878')
browser = webdriver.Chrome(chrome_options=cr_options)
browser.get('https://www.google.com')
browser.get('chrome://components/')
Original comment by agau...@chromium.org
on 1 Jul 2015 at 10:08
Thanks for the help, that works perfectly fine! This workaround is sufficient.
Original comment by bhn2...@gmail.com
on 1 Jul 2015 at 5:16
bhn2600@
thanks for the update, closing this bug for now. please file new bug if there
is any issue observed in chromedriver.
thanks
P.S:-
When chrome is launched via ChromeDriver it creates temporary user directory
and profile:- like --user-data-dir=/tmp/.com.google.Chrome.weHzZr.
this temporary profile may not include all chrome components or players as it
does when launched manually. hence some functions of chrome may have different
behavior.
to resolve this problem, we can connect to existing chrome session with the
help of ChromeOptions debuggerAddress.
Original comment by agau...@chromium.org
on 2 Jul 2015 at 8:13
Original issue reported on code.google.com by
bhn2...@gmail.com
on 30 Jun 2015 at 3:06