I want to run chrome from selenium with particular app installed in it. I am aware that we can load extensions in the chrome driver as explained here. I have tried to use the same code for unpacked app however it gives an error:
failed to load extension manifest file is missing or unreadable
Related
Is there a way to completely disable log4net errors appearing on npm console while running test cases . I am using Protractor and Selenium Web driver. I would like to know if this is possible through Protractor's config file Capabilities.
I like to run my karma unit tests on a headless chrome. Using karma-chrome-launcher and setting the browser to "ChromeHeadless" works on my machine. But on the CI server it fails with the message "No binary for ChromeHeadless browser on your platform."
Installing chrome on the CI machine is not possible. Is there another way to load the chrome binaries?
for example the google puppeteer module seems to load that when run. from the docs: "Puppeteer downloads and uses a specific version of Chromium". How can i achieve the same?
You can use Puppeteer (headless Chromium), follow these instructions.
If what you fear is that download from the internet might be slow, you can tell puppeteer where to download chrome from and use a local address.
Use PUPPETEER_DOWNLOAD_HOST to specify where to download Chrome from and PUPPETEER_SKIP_CHROMIUM_DOWNLOAD to skip downloading Chrome altogether.
You can read more about this in the documentation.
I am having a jar file which I am calling from powershell script. Now when I run the script the jar file is called and when jar tries to open google chrome, it crashes. If I try running the jar outside the powershell script it works perfectly fine. I think this is a machine specific issue, because the script ps script runs perfectly fine on other machines. any suggestions??
Using Chrome's alternate installer. This will install Chrome for all users.
Link: Alternate Installer
This often fixes problems if you are running Selenium as a background service.
Passing '--no-sandbox' flag when creating your WebDriver session.
Special test environments sometimes cause Chrome to crash when the sandbox is enabled.
While running the selenium webdriver script for chrome browser, I am getting the below error:
[2144:7568:0519/130434:ERROR:cache_util_win.cc(20)] Unable to move the cache: 0
[2144:7568:0519/130434:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[2144:7568:0519/130434:ERROR:cache_creator.cc(129)] Unable to create cache
[2144:7568:0519/130434:ERROR:shader_disk_cache.cc(589)] Shader Cache Creation failed: -2
Could some one help me out please
I assume you're starting your chrome driver attaching your default profile.
It's not the problem of your chrome driver, It's because you are running another chrome instance while you are starting your selenium webdriver, so some of the files in the profile is locked so that your selenium webdriver can not move it.
I encountered the same problem and shut down all chrome instances before starting my selenium webdriver solved the problem.
It is a problem with chrome driver installation. After I installed the chrome driver it worked for me. Thanks
This problem occurs due to the chormedriver api is not integrated with your project.
JUST DO THESE STEPS:
Configure your chormedriver api in your build path ( download from here http://chromedriver.storage.googleapis.com/index.html)
2.Go to the project right click ->>> go to build path ---> conf build path --> libraries --> add jar (add chromedriver jar file)
now add this code before the chormdriver object call.
System.setProperty("webdriver.chrome.driver", "path for your chormedriver api ");
It's because you must install selenium web driver instead of selenium IDE, download both & configure build path with that jar file.
Double check the import files which corresponds to selenium web driver, not selenium IDE.
I am using selenium webdriver 2.25.This webdriver supports only for firefox but not Chrome.I downloaded chromedriver and added it to the ClassPath as well but my scripts are not running if i mention chrome as the browser to run.Can anyone suggest me what configuration settings am i missing ? or where i went wrong. Am using Eclipse IDE to write scripts.