Hello!
I wonder if it is possible to tell the Chrome browser to allow or block notifications while using it with RPA?
In Selenium/Java I would use something like this:
ChromeOptions options = new ChromeOptions();
options.AddUserProfilePreference("profile.default_content_setting_values.notifications",2); /* or 1 depending if I want to block or allow notifications */
IWebDriver driver = new ChromeDriver(options);
Best regards!
Discussion posts and replies are publicly visible
When you say 'Notifications' are you refering to browser alerts? Can you post a screenshot of one of these notifications?
I can not identify this window using Selenium or Xpath and I need to allow or block the notifications to proceed to the site.
Using the 'driver' you can handle and submit alerts
Well I don't know how can I use driver in Appian RPA?
I see there is a course "Extend Appian RPA" on Academy and I'll try to go through it in next couple of days. Is that the way to do it?
Or is there another way I should follow?
Is there any documentation regarding this issue I could review? Examples maybe?
Thanks in advance for any suggestions.
Hi,
If you can't disable that popup in browser. Then you can try Image low code image recognition module to click on that Allow or cancel button. Or you can try Action class of selenium to handle that in java code.
Regards,
Mukesh
Hi Mukesh,
Thanks for the suggestion. I "solved" the problem using low code image recognition module, but it is too slow. It takes 10-15 seconds to identify Allow button on the screen so I am trying to go through Extend RPA tutorial and see how can I use Java code in a robot.
Unfortunately there are some issues with my environment and repositories, so I can not use Java code until those issues are solved with Appian support.
To improve the speed, I recommend using the smallest possible image with the lowest possible tolerance
Hi Danny,
I appreciate your advice. I did that already because it was mentioned in the documentation.
One of Appian support engineers told me to try to select the image (if possible) so the pixel in the top left corner of the image has a colour that is different than the colour of the background. This is because searching for image starts by comparing the colour of this pixel to the colour of the pixels of the area we are searching in.
The initial image had white pixel in top left corner and most of the website background was white so this is probably why the initial search was so slow. It would be great if this advice is written in the documentation (better phrased than what I wrote, of course).
I changed the image so the top left pixel is blue and now I have recognition times mostly less than half of a second which is good.
Unfortunately I still can't "click" on a button I found, at least not in a first try, but I'll open another thread for this issue.