i can't set the notification on Selenium version 4.7 in c#
I tried
chromeOptions.AddAdditionalOption("profile.default_content_setting_values.notifications", 1);
but it did not work, ie, chrome always prompts me to enable notifications manually. I wish they were always accepted by default.
does anyone know what to do?
thank you
Related
I wrote a UWP program and I used Restricted capability
broadFileSystemAccess
When I published this application I obtained permission from Microsoft, and its now in the Microsoft Store.
But when I tried to install it, it got an error:
My computer: Windows 10 1809
I have tried googling this, and writing to Microsoft, both without finding a positive result.
First, make sure the problem is actually only with your app by trying to install some other app if that will work.
If this happens only with your app, you should definitely contact Windows developer support for this issue. Select Contact us tab, then Windows 10 UWP app development and submit your incident. They should be able to help. You can also post the problem on the publishing Forum for greater visibility.
After a lot of research and many tries, I wanted to know how it was possible to work with Selenium AND proxy with username/password in C#, with an headless solution (so no AutoIT script alternative).
For Chrome :
-There is no options and arguments available, an authenticate window will always pop up asking for the credentials, there is apparently noway to bypass it, and the only solution would be to use an external tool to write in the window. This solution is obviously not compatible with an headless. I tried to downgrade my Selenium version to the 2.53.0 in order to test the solution with the Alert handling, but it appears that now, Chrome browser doesn't treat that windows as an alert anymore. I could maybe downgrade also my Chrome browser version, but I don't want that for now.
For FireFox :
-Exactly same problem.
For IE :
-The proxy is set in the registry, so I don't even know how to run manually multiple instance with different proxy.
So, my question is, how, in C#, within an HEADLESS Selenium browser (I don't mind which one), I can run a session with a proxy user/pw (without any manual of course, and if possible without any third party program, but only within Selenium) ?
I am not able to implement oauth in window based app. I have tried C2QB but when I run it, browser hangs and doesn't responds.
I tried the C2QB example from:
Github-Quickbook
I try to connect to Quickbooks online.
After a long time of struggle I found out that the INTERNET EXPLORER was causing the problem. The code provided by Intuit is fine and working good, I just had to change some settings for IE to stop it from freezing.
Goto Control Panel > Internet Options > Advanced > Check Use
software rendering instead of GPU rendering
I am doing selenium web driver automation on windows 10 IE Edge browser. I can able to launch IE Edge browser but command prompt which is launched for Microsoft driver is running in front and "IE Edge" browser window running backside of that hence some test are failing due to such behavior in IE Edge.
So i want to try with changing primary setting of IE Edge for selenium web driver like changing Security zone setting at same level and all other required setting needed for selenium web driver.
Please any help in IE edge is greatly appreciated.
Note: What i think is the existing test which are running on IE 11 with selenium web driver. Those same tests are not working in IE Edge with selenium web driver. Please help
Microsoft Edge configurations are not 100% same as others. It requires additional installation in order the WebDriver to talk to the browser. I have not personally tested/used it yet. But, read this answer.
According to JimEvans answer, you must upgrade the Selenium bindings to 2.47 since this release has necessary changes.
Note: Of course not all API will work with edge browser. The link above answers most of common questions you may have.
I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I've moved from XP over to 7, this seems to have stopped working.
I'm running the selenium RC server process as administrator, since that was necessary to get an IE instance to launch properly.
I've tried adding permanent security exceptions for the certificate in question, and have confirmed that this works when I myself launch a browser session. But when a browser session is instantiated by the Selenium RC, I'm still receiving the security warnings.
I've also tried specifying the 32bit version of IE, in case it was just the 64bit version that wasn't working, but both exhibit the same behaviour.
I've also tried temporarily disabled UAC, in case I was falling foul of a permissions/elevation problem, but that also did not help.
Has anybody managed to get the heightened privilege browsers working properly on Windows 7? Alternatively, does anybody know a way that I can get around this issue? (short of not using https!)
Thanks!
Have you tried adding the certificate to your list of accepted certificates by hand?
As IE doesn't have profiles, and each session uses the user's profile, you can add the certificate by hand the first time the error occurs to Selenium and next time the browser finds an error to warn, it will find the cert in the list of exceptions and proceed with the page without warning.
For Firefox, the best way to get around this is to create a custom profile with all the certificates accepted, then specify that profile when you start your Selenium server. I use this same strategy for setting up browsers in different languages.
*chrome is normally the way to run Firefox with relaxed security.