Open GoogleCodeExporter opened 9 years ago
can you show us how do you register nodes to the hub?
Original comment by andrewch...@chromium.org
on 20 Nov 2014 at 11:52
Original comment by andrewch...@chromium.org
on 20 Nov 2014 at 11:52
We do it using the standard method as it is explained in the selenium wiki -
https://code.google.com/p/selenium/wiki/Grid2
java -jar selenium-server-standalone-2.44.0.jar -role hub
java -jar selenium-server-standalone-2.44.0.jar -role node -hub
http://localhost:4444/grid/register
Original comment by maddyro...@gmail.com
on 21 Nov 2014 at 5:37
Google Chrome 39.0.2171.65 (Official Build) m
Revision df9a6771580cfbd8eca670eb8bd779a0712b895e-refs/branch-heads/2171_62@{#4}
OS Windows
two simple test programs run at the same time
instance 1:
Starting ChromeDriver 2.12 (b6bec6f7c3a14e9472b2fc3747c726c5c88ac921) on port
26097
Only local connections are allowed.
instance 2:
Starting ChromeDriver 2.12 (b6bec6f7c3a14e9472b2fc3747c726c5c88ac921) on port
2965
Only local connections are allowed.
each driver launched its own Chrome Browser(two instances) , and loading an URL.
they can hold as long as my timer setting.
If you can try the new version and see.
Original comment by andrewch...@chromium.org
on 21 Nov 2014 at 7:11
[deleted comment]
Can not reproduce the case. launched two instances at the same time.
following is my set up
Google Chrome 39.0.2171.65 (Official Build) m
Revision df9a6771580cfbd8eca670eb8bd779a0712b895e-refs/branch-heads/2171_62@{#4}
OS Windows
two simple test programs run at the same time
instance 1:
Starting ChromeDriver 2.12 (b6bec6f7c3a14e9472b2fc3747c726c5c88ac921) on port
26097
Only local connections are allowed.
instance 2:
Starting ChromeDriver 2.12 (b6bec6f7c3a14e9472b2fc3747c726c5c88ac921) on port
2965
Only local connections are allowed.
each driver launched its own Chrome Browser(two instances) , and loading an URL.
they can hold as long as my timer setting.
If you can do the same.
Original comment by andrewch...@chromium.org
on 21 Nov 2014 at 7:53
Which version of Windows did you try this exercise on?
I pretty much did the same exercise on Windows 2008, but through a hub than
standalone executions.
Again, the original issue we are still facing is that our test jobs running
through Jenkins affect each other as each of them try to instantiate individual
instances of Chrome driver without using a hub.
Original comment by maddyro...@gmail.com
on 23 Nov 2014 at 5:56
1. on window 7
2. can you try following set up
java -jar selenium-server-standalone-2.44.0.jar -role node
-Dwebdriver.chrome.driver=\path\to\chromedriver.exe -hub
http://localhost:4444/grid/register -port 5556
client software
String Node = "http://127.0.0.1:5556/wd/hub";
don't have problem run on window 7 and Linux
Original comment by andrewch...@chromium.org
on 24 Nov 2014 at 7:55
I did try the exercise on Windows 7, and it works perfectly fine as it did for
you. It works fine on Ubuntu as well.
However, it breaks on Windows 2008 Server, and the problem is consistently
reproduceable. Is it possible for you to try the same exercise on a Windows
2008 Server?
Our test execution environment which is hosted on cloud runs on a Microsoft
Windows 2008 R2 SP1, and this scenario was working perfectly alright until v37
of Chrome. Once the auto-update switched the browser to v38, things started
breaking.
It would be quite appreciated if you can help resolving the issue.
Original comment by maddyro...@gmail.com
on 25 Nov 2014 at 7:04
We don't have Windows 2008 Server at moment.
Can you run command line
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
--disable-background-networking --disable-client-side-phishing-detection
--disable-component-update --disable-default-apps --disable-hang-monitor
--disable-prompt-on-repost --disable-sync --disable-web-resources
--enable-logging --ignore-certificate-errors --incognito
--load-extension="C:\Windows\TEMP\scoped_dir7068_19486\internal" --log-level=0
--metrics-recording-only --no-first-run --password-store=basic
--proxy-server=http=localhost:9945;https=localhost:9945
--remote-debugging-port=12132 --safebrowsing-disable-auto-update
--safebrowsing-disable-download-protection --test-type --use-mock-keychain
--user-data-dir="C:\Windows\TEMP\scoped_dir7068_26811"
Original comment by andrewch...@chromium.org
on 25 Nov 2014 at 6:34
I ran it, and saw an error pop up saying "Could not load extension from
'C:\Windows\TEMP\scoped_dir7068_19486\internal'. Manifest file is missing or
unreadable."
The browser was launched after I clicked on the OK button of the error dialog.
Original comment by maddyro...@gmail.com
on 25 Nov 2014 at 6:50
Can you remove switch --load-extension
on your application?
Original comment by andrewch...@chromium.org
on 25 Nov 2014 at 7:03
Do you mean in the code which launches the webdriver or in the command you
provided earlier?
If you mean the code change, how do i do it using an instance of ChromeOptions?
Original comment by maddyro...@gmail.com
on 25 Nov 2014 at 7:28
I mean remove load-extension from ChromeOptions for now.
then, test your software as usual.
Original comment by andrewch...@chromium.org
on 25 Nov 2014 at 7:43
Got it. As far as I see, ChromeOptions supports adding/enabling arguments. How
do I disable/remove an argument using ChromeOptions?
Original comment by maddyro...@gmail.com
on 25 Nov 2014 at 7:51
[deleted comment]
ok, that is build-in, ans can not disable/remove.
Once we got a Windows 2008 Server, will test on it.
in the mean time, what do you see on
--load-extension="C:\Windows\TEMP\scoped_dir7068_19486\internal
if it still available.
Original comment by andrewch...@chromium.org
on 25 Nov 2014 at 10:25
Original comment by andrewch...@chromium.org
on 26 Nov 2014 at 2:32
I could not find any coredumps. However, I was able to collect the temp
directories created during the test run. My test code tries to launch 5 browser
instances in parallel, and I could see 10 temp directories getting created. 2
directories are created per browser instance - 1. load-extension 2. temporary
browser profile.
Let me know if you would like to take a look at these directories.
Original comment by maddyro...@gmail.com
on 26 Nov 2014 at 1:18
To expedite things, would you have time to have a shared session or debug the
scenario in a test setup on a Windows 2008 server from our end?
Original comment by maddyro...@gmail.com
on 26 Nov 2014 at 1:20
let's do multiple trouble shootings
1. can you set the registry values
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\chromedriver.exe
2. remove all scoped_dir_xxxx in temp dir
3. test not more than two instances
4. after crash, zip the whole dir and email to me - all of them
--load-extension="C:\Windows\TEMP\scoped_dir7068_19486\internal
Original comment by andrewch...@chromium.org
on 26 Nov 2014 at 7:47
Could you please share your e-mail id?
Original comment by maddyro...@gmail.com
on 27 Nov 2014 at 11:08
Can you see it? - andrewcheng@chromium.org
Original comment by andrewch...@chromium.org
on 1 Dec 2014 at 6:13
Original comment by samu...@chromium.org
on 21 Feb 2015 at 12:19
Is this issue fixed? I am also facing the same issue.
Original comment by shrutiuj...@gmail.com
on 5 Mar 2015 at 11:28
I got this fixed using a slightly different approach though. Though the issue
was local to my setup, I found it as a defect on the way ChromeDriver treats
the default user profiles.
Original comment by maddyro...@gmail.com
on 5 Mar 2015 at 11:35
#25 would you please describe more about your setup?
Original comment by andrewch...@chromium.org
on 5 Mar 2015 at 6:19
Hi Andrew,
What details would you exactly need?
Some that I could think of is listed below::
- I am using Chrome Version 41.0.2272.76 m
- Tried using even latest ChromeDriver & Selenium Standalone jar -- but still
face the same issue.
- Windows 7 64 bit
- Simple code that I am trying:
WebDriver driver1 = new ChromeDriver();
driver1.get("http://www.google.com");
Thread.sleep(3000);
WebDriver driver2 = new ChromeDriver();
driver2.get("http://www.google.com");
Thread.sleep(3000);
driver1.quit();
driver2.quit();
** With this code, google launches in first tab of Chrome -- but for the second one it doesnt load the page. Just gets stuck with: data:; in the address bar.
** I tried using a Chrome Extension named -- New Tab, New Windows --> that opens new tab in new window. But still see the same issue. When the 2nd driver is launched it shows same data:; error.
The same code used to work on my machine couple of months back. Not sure what
has changed recently.
Please suggest asap how to fix it. Totally stuck with the issue. Thanks!
Original comment by shrutiuj...@gmail.com
on 8 Mar 2015 at 7:12
do you mean you have same driver and codes months back, and suddenly not work?
Original comment by andrewch...@chromium.org
on 9 Mar 2015 at 6:35
Original comment by andrewch...@chromium.org
on 9 Mar 2015 at 6:55
Shruti,
Could you please check your current profile path of Chrome? You can get this
information by typing chrome://version on your regular browser instance (not
through webdriver), and looking for the field "Profile Path".
This would typically be set to something like
"C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default". This
somehow got changed to "C:\Program Files
(x86)\Google\Chrome\Application\39.0.2171.95\${users}\Administrator\Chrome" in
my case, and I had to reset this to the normal one by clearing some registry
settings.
Perhaps, this solution might work for you as well.
Original comment by maddyro...@gmail.com
on 9 Mar 2015 at 7:07
My profile was also wrong like yours. So I changed the Registry userdata value.
Now in Chrome Browser it shows like:
Profile Path C:\Users\IBM_ADMIN\AppData\Local\Google\Chrome\User
Data\Default\Default
Still it does not work. Pls suggest how to proceed?
Original comment by shrutiuj...@gmail.com
on 10 Mar 2015 at 6:46
you have ........e\User Data\Default\Default
double Default - not correct.
check you environment variable - LOCALAPPDATA=
what is it?
Original comment by andrewch...@chromium.org
on 10 Mar 2015 at 6:26
My mistake in typing. The Registry entry is set correctly::
UserDataDir=C:\Users\IBM_ADMIN\AppData\Local\Google\Chrome\User Data\Default
When I look at the environment variable, it says:
LOCALAPPDATA=C:\Users\IBM_ADMIN\AppData\Local
Let me know what to do now.
Original comment by shrutiuj...@gmail.com
on 10 Mar 2015 at 6:34
let's do another trial,
create c:\tmp
set environment variables
TEMP=c:\tmp
TMP=c:\tmp
run your testing again
Original comment by andrewch...@chromium.org
on 10 Mar 2015 at 7:20
Original comment by andrewch...@chromium.org
on 10 Mar 2015 at 7:21
It does not work :( Let me know what else can I try?
Original comment by shrutiuj...@gmail.com
on 11 Mar 2015 at 6:17
what is your profile path? - should under c:\tmp
Original comment by andrewch...@chromium.org
on 11 Mar 2015 at 5:32
[deleted comment]
** In Chrome if i do: chrome://version/
I get Profile Path=C:\Users\IBM_ADMIN\AppData\Local\Google\Chrome\User
Data\Default\Default
** In the Windows Registry its set to:
UserDir=C:\Users\IBM_ADMIN\AppData\Local\Google\Chrome\User Data\Default
Original comment by shrutiuj...@gmail.com
on 11 Mar 2015 at 8:07
this is not right, new launched chrome profile will under c:\tmp
make sure your temp environment variable is effective
Original comment by andrewch...@chromium.org
on 11 Mar 2015 at 9:12
So i fixed that -->
** In Chrome if i do: chrome://version/
I get Profile Path=C:\tmp\Default
** In the Windows Registry its set to: UserDir=C:\tmp
Still its not working!!
Original comment by shrutiuj...@gmail.com
on 12 Mar 2015 at 6:20
do you also create on issue 1055?
Original comment by andrewch...@chromium.org
on 12 Mar 2015 at 5:16
Yes I had, but no luck. Any updates on how the issue can be fixed?
Original comment by shrutiuj...@gmail.com
on 14 Mar 2015 at 7:01
Any updates on how this can be fixed? Will Remote Troubleshooting session be
helpful?
Original comment by shrutiuj...@gmail.com
on 17 Mar 2015 at 10:36
Unable to reproduce issue with ChromeDriver:v2.14 and Chrome:v41, Windows 7.
Please find attached sample code and let us know if we differ from what you are
trying.
Original comment by ssudunag...@chromium.org
on 25 Mar 2015 at 5:16
Attachments:
Original comment by ssudunag...@chromium.org
on 26 Mar 2015 at 6:44
Original issue reported on code.google.com by
maddyro...@gmail.com
on 20 Nov 2014 at 5:08