Seeking: Firefox pluggin to email a screenshot of the *whole screen* (not just browser) - screenshot

If find frequent need to send a screenshot of my entire screen to someone via email. And I use Gmail so I can't just paste a screen capture in, I have to open an image editor, paste, save, open Gmail, browse, drill down and select the file.
I fond a few FF pluggins that do a nice job but only capture the browser.
Any suggestions?

Firefox won't be able to capture anything except the browser. You need to get your OS to do that for you. For example, on Windows, pressing the 'Print Screen' (PrtScn) key - that will copy a screenshot to the clipboard. On OSX, use command-shift-3.

Related

How to get rid of google pop-ups while testing and navigation google url?

Every time I navigate to google through Selenium, I encounter this popup. I can't click on the search bar. Is there a way to close permanently this popup without using any JS alert method etc.?
I tried some extensions but it didn't work
Click the Lock button (🔒) on the top-left of the search box
Click on 'Cookies'
Make sure you're on 'allowed' and find anything on the lines of google.com
Click Block, Done and refresh the page
Additionally, you may want to try it first without the web-driver 'Chrome is being controlled by automated test software' mode, so open Google Chrome you way you usually would.

How to handle Micro Popup in Webdriver.io browser

When starting a website, I find it difficult to click Block button on Microphone popup because I can't query this popup (and also with block btn)
How can I handle this problem with Webdriver.io in browser?
enter image description here
One option is to use chrome command line switches. You can find the list here.
The one you are looking for is use-fake-device-for-media-stream. You can set this in your config file so that every time the chrome is launched, it won't show this popup since it is already set to a fake device.

How can I make my Voice Assistant launch the apps?

I am working on a Voice Assistant.
I need to allow it to launch apps, how can be found the path of the apps to launch them?
Your question is quite minimal but I can attempt to answer it for you.
Assuming that you're using windows 10, with Word for example, you would type in word using the indexing feature at the bottom left of your desktop. Then you would click the down arrow to reveal more options. Then you would click open file location. The address at the top of your explorer will show the file location.
If you want to open another exe (or compatible software) in a known location but is not available to index, you would open your explorer and navigate to the desired application. Copy paste the address at the top of the explorer window.
You should import subprocess to your code and when you need to open the app write subprocess.check_output("file location", shell=True)
For example:
subprocess.check_output("C:\\Test\\Test\\Test\\application.exe(or .lnk or something u need)", shell=True)

Using selenium drivers to Print to PDF

I am struggling with a problem.
I need to download PDF file when the Print dialog appears.
Here is an example of the dialog
I have tried both the chrome and firefox drivers. But unfortunately still cannot get it working.
I have found the following preference for the firefox
fp.setPreference("print.print_to_file", true);
But it seems that it doesn't work.
It doesn't even get applied into the configuration variables set.
Please suggest any way to automate some actions with selenium and then save to PDF file when this print dialog appears.
Firstly, you need to know selenium is a web automation tool. so it can only operate things belongs to browser. Even that, it can't operate all things belongs to browser, like address bar, favior bar, menu bar of browser.
For most case, the print dialog is not belongs to browser, it supplyed by OS or other software installed on OS. so selenium can't operate it is reasonable.
If your script code by java, you can use java.awt.robot to capture the dialog
and click 'print to file'.
If java.awt.robot can worked as your expect, I think you aslo need to set browser options in your script to give a path for browser to save the printed file, just like when you download file, browse will ask you where to save.
if you not to set that options, i guess it will pop-up another dialog to ask you where to save and this dialog is also not belongs to browser.
it's not easy to use java.awt.robot to set the save path.
Because you need to consider the possbility of script run on different OS, use abosulte path is not workable on different OS. Besides if your script run with seleniu grid, it will make you craze. So if testing print to file feature is not important, i recommend you test it manuall.
You can automate Print to PDF using Testmate as below
http://thetestmate.com/save-as-pdf-in-chrome-testmate-selenium/

How to click on Open/save/save as/cancel button on IE 11 using vba

I would like to click on open when a file download dialog appear in IE 11. I found this code http://www.siddharthrout.com/2011/10/23/vbavb-netvb6click-opensavecancel-button-on-ie-download-window/
But this code does not work with IE11. I have also attached the IE11 download dialog box here too. Anyone has any idea, please, help.
You can use Alt+N to focus on the Notification Bar.
And then send {tab} key to navigate to the specific button.
With VBA, you may use Autohotkey.dll or AutoItX3.dll to send these hotkey combinations.