Web browsers into kiosk mode - asp.net

I have currently found a way to place the currently installation of Internet Explorer into kiosk mode using asp.net and VB
System.Diagnostics.Process.Start("iexplore", "-k " & "http://www.google.co.uk")
the "-k" parameter is the command that puts the browser into kiosk mode, however, other browsers such as chrome will only put the new instance of the page into another tab and firefox just opens the browser without loading the window.
I need to know what commands to pass so that chrome and firefox will respond in the same way as IE.
Many thanks

Chrome browser can do KIOSK mode with this command.
chrome.exe --chrome-frame -kiosk "your web page".
The good thing with Chrome is that you can build apps that can use the webkit animation and they look great for a KIOSK type applications.

It sounds like you might be interested in Windows Steady State, it's discontinued and doesn't run on win 7, but if you have XP or vista, it will let you lock down the PC nice and tight. This way you can restrict the use of programs to browsers you want (if you can't lock down chrome and ff) and on a reboot, it will clear any changes to the PC, basically returning you to a clean state status
Read more here: http://en.wikipedia.org/wiki/Windows_SteadyState

Related

Configure Visual Studio or Chrome To Launch Multiple Asp.Net Projects In The Same New Browser Window

I have a solution in Visual Studio 2017 with multiple Asp.Net startup projects.
Current Behavior
When I start debugging each project starts in a new Chrome window with a single tab.
Desired behavior
When I start debugging all web pages start in the same new Chrome window, each in its own tab.
I had the desired behavior in Brave browser, apparently by default—but for business reasons I now need to switch to debugging primarily in Chrome.
So, I suspect this is a browser setting, but as long as I get the desired behavior I am willing to adjust settings in either the browser, Visual Studio or both.
UPDATE:
To be clear this is not:
How to use the same browser window every time you start a project in Visual Studio?
Nor is it:
Stop Visual Studio from launching a new browser window when starting debug?
I do want a new browser window, apart from any previous debugging and indeed a separate instance from any browser I may have already started on the same machine.
To Launch Multiple Asp.Net Projects In The Same Browser Window
You can go Tools menu => Options => Project and Solutions => Web Projects, then you can find a setting called:
Stop debugger when browser window is closed, close browser when debugging stops
Uncheck it and click OK, then you can start the multiple projects in same Browser Window. Note: This behavior after uncheck that setting may not meet all your needs.It will not open in new Chrome instance but in a already running Chrome instance if it exists.
When set the Chrome as default browser in VS. If you've already have a Chrome browser running, start the solution and it will open several tabs in that existing Chrome instance. And only when you have no Chrome instance running, it will start same new Chrome browser window as you expected. So actually this setting only meet part of your expected behavior I guess.
To Launch Multiple Asp.Net Projects In The Same New Browser Window
It seems only when you have no Chrome instance running, this behavior can be reached. And as far as I know, there's no setting in VS can configure VS to always launch Chrome in a new instance with several tabs when start the solution with multiple startup projects.So maybe you can go Developer Community to share your requirement to the Product Team by Suggest a Feature option. Hope it makes some help:)
To avoid using an open browser you can use Browse with... if you can give any argument to chrome however arbitrary, it will open a new browser window. It provides the chrome instance a new "signature" and VS will see the browsers as separate applications.

On AEM - Publish option do not work in Chrome and Firefox on Windows 8 & 10

The “Publish” and “Publish later” options do not work/clickable-but-no-actions in Chrome (latest version 66) and Firefox (latest version 59) on AEM 6.3.1 CFP2 on Windows 8 and 10
The same works on Edge browser on Windows 10 and on all browsers on Mac.
We tried to disable all extensions on the browsers and try, but it did not help. The same worked on Windows 2016 Server though.
Anyone came across this?
After lot of testing, we identified the root cause.
Reason for the issues
The default setting in Chrome is "Automatic."
If the user touches on the touchscreen then it will process the action, but if they click with a mouse it will not respond. And this only happens with touch events on a touch-enabled Windows PC.
AEM is listening for the wrong event and it cannot be reproduced on a desktop PC or laptop with no touch screen because the browser will automatically disable the touch events feature anyway.
The user has to either disable the touch events feature of the browser or they can use their touch screen and physically tap on the publish button.
Resolution
Tested this on AEM 6.3, SP1, CFP 2
On Chrome
Type chrome://flags/#touch-events in your browser
Please set it to Disabled
Select Relaunch Now
On Firefox
Type about:config in your browser and click the accept button
Search for dom.w3c_touch_events.enabled
If it is set to 0, please set it to 2

Launching Internet Explorer 9 with Developer Tools

I have a script that runs in a browser add-on. It's using the log function of the console object that is only available when the F12 Developer Tools is loaded.
While I can disable the add-on and enable it again to see the early messages intended to be logged, I find it a bit annoying. Is there a way to load IE9 with developer tools? I'm hoping there might be an obscure argument to be passed to the application to enable that.
If this were possible, I would assume it would be mapped to a command-line options, however there doesn't appear to be any such option (though it would be a nice addition to the browser). A current list of all command line options can be found online at Windows Internet Explorer Command-Line Options.
With IE10, if you leave the Developer tool pinned to the browser window, it will be loaded the next time you open Internet Explorer after you exit.
Note that this will not work if it is unpinned.

watir-webdriver black screenshots

I'm using watir-webdriver to navigate around my website and grab screenshots in different browsers.
Sometimes the screenshots taken in IE turn out the right size, but colored entirely black. The firefox tests that get run at the same time look fine.
browser.driver.save_screenshot(screenshot_dir)
Once I remote desktop to the computer running the tests the IE screenshots look okay again. A little bit after leaving remote desktop the IE screenshots go black again.
I'm running these tests on a instance of Windows Server running on ec2.
Based on your comment that remotely accessing the machine resolves the problem for a little while... disable the screensaver on that box. I'm not sure how (if at all) the screenshot functions on IE and FF differ, but it's worth the time it would take to test the change.
Edit: I still feel like it's windows/power setting related as you logging into the box appears to have an effect, but I don't know what else specifically that could be. I tried a programmatic approach below vvv.
From what you are saying, it sounds like the Windows system is automatically locking, like it should. This would explain why screenshots work fine when you remote in, and then go to black several minutes later when the screensaver kicks in and locks your system.
If the Windows system is locked, screenshots are blacked out. This is a Windows security feature.
I would be curious to know if FF really does do screen captures on a locked system.
Here's the code I'm using to capture screenshots (Watir-Webdriver, Cucumber). I use remote Windows XP VMs for my test boxes, and have not encountered the issue using Firefox or Internet Explorer.
We did find that when you view the log with the embedded screenshot, it does not seem to work in IE - so you have to use Firefox for viewing. It's base64, so there doesn't seem to be a logical reason for this.
After do |scenario|
if scenario.failed?
encoded_img = #browser.driver.screenshot_as(:base64)
embed("data:image/png;base64,#{encoded_img}", 'image/png')
end #
end

MS Visual Studio / ASP.NET : show site in multiple browsers when programmer clicks Run?

Is it possible to somehow make Visual Studio / ASP.NET open multiple browsers when the I clicks Run ? I want to see the page in all browsers I have Internet Explorer, Firefox, Safari, Chrome, Opera when I click run ????
Sebastian
Not sure if there is built-in functionality for that, but you could probably write a program (or script) that takes the site address as a parameter and launches the browsers for you, and then select "Execute external program" as the Run option in the project properties.

Resources