Kiosk Mode - Browser Full Screen - Restrict everything else except the opened window - browser

I am working on asp.net application which is used in one specific machine. On launching this website, the website will be opened in full screen. Now, I should restrict user to use only this window. I should not allow user to open any window, app, anything else by keyboard, mouse.
Please help me in designing this.
Thanks,
Fayaz

Some trial and error helped me. Posting here so that would be helpful for who are looking for same...
Quoting from http://www.pcmag.com/article2/0,2817,1858713,00.asp
You can lock down these subversive key combinations using restrictions in the Registry. Launch RegEdit from the Start menu's Run dialog; navigate to HKEY_LOCAL_MACHINE\SOFTWARE\
Policies\Microsoft Internet Explorer\Restrictions; and find or create each of the following DWORD values, setting its data to 1 to enable the restriction:
NoBrowserClose (disables closing the browser window)
NoBrowserContextMenu (disables right-click context menu)
NoFileOpen (disables use of Ctrl-O or Ctrl-L to launch an arbitrary URL)
NoOpenInNewWnd (disables opening a link in a new window via Ctrl-N or Shift-click)
And below url helps in blocking other functionality
http://blogs.technet.com/b/askpfeplat/archive/2013/10/28/how-to-setup-assigned-access-in-windows-8-1-kiosk-mode.aspx

Related

Switch to window (tab) without bringing browser to front

I am using Python and Selenium to navigate multiple tabs. How can I switch to a different window/tab without bringing the entire browser window to the front and without the selenium window "stealing" the focus of my computer? For example, if I'm typing in the search bar of a normal browser and my script switches tabs, it'll stop typing the search bar and I'll have to reclick the search bar to start typing again.
No headless mode suggestions please.
Changing the browser location off the screen doesn't work because it still steals focus
Minimizing the browser doesn't work because it unminimizes when the switch to command is run
Here is how I'm switching windows:
for handle in driver.window_handles:
driver.switch_to.window(handle)
The answer is NO, this is not possible to do with Selenium.
Selenium is created to simulate actions a user can do via GUI.
As a user you can't do what you are asking about, Selenium can't do it as well.
I think, If you deploy your Automation scripts to a VM (which is there in you Machine), You can continue to start working on your local browser and Your Automation script will run on a VM and will have a independent environment for the same.

Handling file download popup of chromium browsers using VBA

I'm using Selenium with VBA and Microsoft Edge to collect information, and download some files from a webpage. Everything works great except for the downloading part.
On this example site: https://file-examples.com/index.php/sample-documents-download/sample-doc-download/, Code like
oWebDriver.FindElementByXPath("//a[#href=""https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.doc""]").Click
will result in a popup like this:
Unfortunately, it is not possible to simply change the browser's preferences in my case, because the macro will be running on a machine with limited authorization and the following setting can not be changed:
The last option can be translated to: "Ask for the storage location with every download" and it is locked.
It seems that the "Save As" popup in the first screenshot can't be accessed, neither with Selenium nor with SendKeys.
So the only option seems to be using the Windows API with VBA to somehow automate this step, however, even so, it seems to be impossible to get a handle on this pesky popup. I tried finding the window with Spy++ and it doesn't seem to show up as a separate window:
The only solution I can now think of is getting the window size of the parent Edge browser window, navigating the mouse to the approximate position of the "Save As" button, and clicking it there using VBA and the Windows API. Obviously, This is not a great solution, as it would be quite frail and can easily break with the smallest misalignment.
Is there any other way to automate this step that doesn't require moving the mouse and automating the "manual" clicking, using only VBA with Selenium?
Selenium only works for browser web page automation. The pop-up is not a part of the wab page so Selenium will not be able to recognize it.
And I think any setting in Selenium including "download.prompt_for_download" won't have effect. The pop-up is controlled by the browser setting, and the browser setting is controlled by your group policy, you can't override it with Selenium settings.
I think the only way is to use some 3rd party UI automation library to click that option along with Selenium, just like what you said in the question.

Is it possible for a Chrome Extension to screen grab from an incognito window?

I'm trying to build a screen recorder as a Chrome Extension. The idea is that the recorder can log all mouse and keyboard events, and also store a stream of images from the browser client window. I want to do all of the recording from an incognito window. So far, I'm not managing. Is this even possible?
Yes, it's possible. User just has to allow incognito mode.
Here are the steps below to get this done:
1. In chrome://extension find your extension press details
2. Then Find the section that says allow in incognito.
Just turn it on, this will work.

What is the keyboard shortcut to capture screenshots using Capture for Jira?

https://confluence.atlassian.com/display/CAPTURE/Taking+screenshots says
"Keyboard shortcut
Capture for JIRA allows you to configure a keyboard shortcut to take a screenshot at any time. This allows you to capture bugs that might only occur during mouse interaction.
The configuration can be set in the server settings overlay in the browser extension's sidebar."
I cannot figure this out.
It's a setting in the browser extension, not in the JIRA add-on.
In your JIRA, in the "Capture" menu at the top, there's a link to install the browser extension. Make sure you've installed the extension first.
Then, when you open the extension, you can click the settings icon at the bottom. That will display the settings panel where you can configure your shortcut keys:

Disabling drag and drop on x window manager

I am setting up a kiosk to be available for people to download files from a local web server. my base operating system is ubuntu server. On top of that is Sanickiosk which I used to create a kiosk environment, then I switched their choice of browser for firefox with the mKiosk extension.
The problem is that there is a vulnerability in that a file can be dragged from the dowload location chooser into firefox and then opened.
I tried searching for how to disable the drag and drop function in the x window manager and did not find any clues.
I am wondering if I can add something to the bash script that disables right click and starts the browser.
Edit: wondering if there is a way to instantly "release" the mouse click on mouse click thereby preventing drag and drop?
Any help would be appreciated. thanks.

Resources