How to close the select certificate prompt programmatically using JS from UI - javascript

Select Certificate promt
How to close or avoid this prompt to select a certificate using JS.
Getting this select certificate popup on calling WhoAmI api.

Related

WhatsApp Auto messaging

Is there any way to send message to group using HTMl or JS
whatsapp
I tried doing with this but it didn't work.
I think there is only option to contact single person through this format:
WhatsApp for obvious reasons does not allow you to automatically send a whatsapp message. What you can do is use a https://wa.me link to start the whatsapp application with share message dialog where your user can select who to share the message with:
whatsapp
It will open a share dialog like this (disregard the red box, I took the image from Google to demonstrate).
Also when you click this link, it will try to open the mobile app first. But if your user is on a desktop, it will try to open the Whatsapp Web interface.

How to automaticly approve opening of new window for authenticating

I'm using office js helpers for a word addin, that is a collection of helpers to simplify development of Office Add-ins. in my case it is the authentication that is used.
When you open the addin. The authentication proccess starts and it opens up a small window with the text(translated to english)
Templatehandler wants to open a new window
Allow or Ignore
(Allow or ignore are buttons)
The company that I work for wants this proccess to be automated - It should be allowed right out of the box. How do I acomplish that?

Close popup in chrome while dom is getting loaded

I am using the latest version of selenium web driver and google chrome browser.
In my app, after clicking on login button while dom is getting loaded I get a popup
image
I just want to close this popup without entering any value. I am using java for scripting.
I tried javascript executor, all popup handlers from selenium but not able to close the same. I am not able to shift control on the popup window.
I google a lot but didn't found any relevant code
This is a default behavior when using HTTP basic authentication. To stop this window to come you would need to send user and password in the request. Or as I understand from other response I found about this you can write:
driver.get("http://UserName:Password#Example.com");
There seems to be a similar issue, going on in thread: How to handle authentication popup with Selenium WebDriver using Java
If all you want to do is "Cancel" the popup, instead of entering credentials. You may be able to just use this.
driver.switchTo().alert().dismiss();
using AutoID was able to resolve above issue.
Refernce: http://learn-automation.com/handle-windows-authentication-using-selenium-webdriver/

Silently print PDF on Google Chrome

i'm developing a Ruby on Rails application and i trying to print a PDF in silent mode, in the words, after user press print dialog confirmation, the application get the default printer and send it.
One of my options, is create a Google Chrome extension, that user can manage the printer and size of paper and etc, only once. And all time that user want to print a PDF the extension send it silently to the default printer.
So, how can i do this extension?
There's any way to manage user print config with js?
There are a better way to do that?
Thanks.

Save PDF when clicked on a download button without showing the OK/Cancel option to save

Is it possible not to show Open/Save dialog? I would like to save the pdf file straight to specific disk location on client PC. Need in NOdeJS
I am automating a LogIn in NodeJS which after a successful login, on clicking a 'Download Report' should download the pdf directly to the computer. On manually testing it does so. However when i run my script after clicking the 'Download Report' it would give a javascript popup for confirmation to save. –
EDIT: After reading your comment again, I noticed you are adding some settings to your profile that sound like they should make it do what you want. Since it isn't working, I think it would be good for you to try what I describe below.
END EDIT
You stated in a comment that you are using Selenium Webdriver to do the login automatically, and the download popup only appears when Selenium is driving the browser. The reason it doesn't keep your settings (to not show the popup) when Selenium is in control, is that Selenium creates a new profile, which has the default settings. You will need to manually create a profile for your browser (I see you are using Firefox), open Firefox with that profile, change the settings to not display the download popup, and tell Selenium to use that profile when it runs.
I'm not sure what your environment is, but I run Selenium from linux, so to create a new profile, I run Firefox from the command line with a -P flag, which opens the profile manager. If you use windows, you may need to look up another way to do this.
Once you have the profile created, and have changed the settings appropriately, change your code to the following:
FirefoxProfile profile = new FirefoxProfile(new File("path/of/firefox/profile"));
Hopefully that will work for you.

Categories