ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

plugin page doesn't load using goto command unless I refresh afterwards #511

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Chrome extension with a visible page such as History Search 
(https://chrome.google.com/webstore/detail/history-search/bojcckfnoicpmfgjhhoncp
inbmechmkl)
2. Goto the visible page using ChromeDriver (chrome://bookmarks/#q=hi)
3. This page doesn't load until I issue the refresh command for my extension 
(jefloaicjcbnplmaghimcanajfedfmmj as identified in the logs). I cannot provide 
my extension for testing so hopefully this happens with the History Search 
extension. This issue doesn't occur when manually executing the same steps.

Simplified test case or site demonstrating the problem:

What version of the product are you using? On what operating system?
ChromeDriver = 2.3
Chrome = 29.0.1547.66 m
OS = Windows 7

Please attach chromedriver.log to your bug report if possible.

Original issue reported on code.google.com by locket...@gmail.com on 4 Sep 2013 at 7:15

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
Are you trying something like this code ? 
    ChromeOptions options = new ChromeOptions();
        options.addExtensions(new File("/usr/local/google/home/gmanikpure/Downloads/history-search.crx"));
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability(ChromeOptions.CAPABILITY, options);
        ChromeDriver driver = new ChromeDriver(capabilities);

            driver.get("chrome://bookmarks/#q=hi");

If not the above way, can you please provide your test code?

Original comment by gmanikp...@chromium.org on 24 Mar 2015 at 10:23

GoogleCodeExporter commented 9 years ago
I also set a custom profile using the user-data-dir argument but otherwise 
that's basically what I did. I say basically because it has been over a year 
since I looked at the code and I was using C# rather than Java.

Are you not able to reproduce this issue using the code you posted?

Original comment by locket...@gmail.com on 25 Mar 2015 at 4:29

GoogleCodeExporter commented 9 years ago
as per comment#2 I'm able to add extension and launch successfully
including the user-data-dir argument, please let us know if loading
extension is the only issue you have or there is some other problem you
are facing ?

options.addExtensions(new File("path/to/history-search.crx"));
options.addArguments("user-data-dir=path/to/chrome/Profile5");

Original comment by agau...@chromium.org on 3 Apr 2015 at 9:50