I'm using Selenium to automate Google Chrome to take screenshots. And I use Task Scheduler to run this application automatically at specified time daily.
The problem is that the screenshots taken is blank/black. However, if I manually run this app by double click its icon, the screenshots gotten is good.
The version of Selenium and Google Chrome I used is all the latest stable. Selenium 2.35 and Google Chrome 29. And I am using C# bindings.
Anyone knows what's wrong with Task Scheduler and how to fix this blank/black screenshot issue?
Is it possible that you recently update the version of your Selenium? The ChromeDriver 2.x has an issue with blank screenshots: https://code.google.com/p/chromedriver/issues/detail?id=309.
Related
I have a problem with chromium when I run my tests through the puppeteer.
What happens is that my tests require the microphone to be enabled the moment I log in to the application, even after adding:
'--use-fake-ui-for-media-stream', '--no-sandbox', '--disable-setuid-sandbox'] : ['--use-fake-ui-for-media-stream'
Before working normally, after changing the machine it stopped working and I don't know if it is related to the version of the chromium that is started:
This is the version of chromium when testing starts:
Version 77.0.3844.0
And my version of the puppeteer is:
```"puppeteer": "^1.19.0"````
Has anyone ever experienced this? If so, how do I update the chromium?
Thanks,
I am having trouble debugging my web project using the Chrome Browser. I can only use IE to do my debugging. I did some "googling" to resolve this problem, and came across a few Microsoft threads that said to update to the latest version of VS2017, which I did. I use version 15.9.13 and Visual Studio 2017 tells me I am "up to date" when I check for further updates.
When I first updated VS 2017, it started working, and I could debug using Chrome (finally!). But now it has stopped working again.
I saw in other threads where people suggested deleting the .vs folder, which I did, but had no luck with that.
Google Chrome is up to date at Version 75.0.3770.100
I debug and run my application as "Administrator" so that shouldn't be the problem either. I also close all browsers before running the debugger, so Chrome isn't running elsewhere when I try to debug.
Is there any explanation why Chrome cannot launch when using debugger? I would really like to use Chrome because of it's superior "dev tools" and inspection tools. Any suggestions? Was sad to have it working only one day.
Having configured the same environment like yours(VS version and Chrome version) but can't reproduce the issue.I would think if something is broken in VS or maybe third-party extension is the causes this issue.
Please try:
VS repair and a reinstall of Chrome(don't forget to backup the bookmarks)
Uninstall or disable third-party vs extensions, this won't take effect until restart vs
Navigate to %LocalAppData%\Microsoft\VisualStudio\15.xxx directory, delete all ComponentModelCache folders in all 15.xxx folders.
Open your project in vs, changed the target browser from Chrome to IE. Then F5 and wait until it is finish. Stop it and change the browser back to Chrome. After that the error disappeared.
Also, create a new asp.net web app and debug it with Chrome browser to check if the issue persists. Hope it helps.
Katalon test running stuck on Running with all the browser options
Katalon stuck on running
Any clue on how to solve this?
I am using a simple open browser script
Maybe Chrome version and ChromeDriver version are incompatible. Refer to this page on how to update ChromeDriver in Katalon Studio: https://docs.katalon.com/display/KD/Update+or+Replace+Web+Browser+Drivers+and+Selenium
If it's stuck, there are solutions.
Close katalon and re-run it.
Open the 'Task Manager' and delete chrome driver from background process.
Update chromedriver.exe file.
If you are using any Katalon profiles, please change those from defaults
Ex :
If you are using Katalone studio then all you have to do is you have to close the Chrome browser on which the script is being run by the Katalone studio and it will start working from where stopped.
I want to run some test using selenium standalone server on Google Chrome but i need to pass some ChromeOptions to the chrome driver from command line
Anybody has an idea of how can i do that?
Selenium Core, which is what you are referring to, was released before Chrome existed. Support for Chrome was added later. What you are asking for was never supported, and with Selenium Core deprecated several years back, it will probably never be supported.
One possible workaround is to set the desired options in the Chrome profile.
Another options, although much more painful, is to move up to Selenium WebDriver.
Errors:
[6944:3028:0128/220426:ERROR:chrome_views_delegate.cc(176)] NOT IMPLEMENTED
[6944:3028:0128/220426:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT
ED
[6944:3028:0128/220430:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT
Read that the problem is in versions of Google Chrome and chromedriver.exe but I have the last version of Google Chrome - 32.0.1700.102 m and chromedriver.exe - 2.8.
Test runs fine.
That's just the console output from ChromeDriver, which does't indicate anything wrong with the tests. You can silence these outputs in order to avoid them on the console. Refer this link: Silencing Chrome driver console outputs when I run my tests.