Use Browser is missing settings like "Private" & "NewSession" in the Modern Design - uipath

For me that's a huge step back. The new Use Browser is missing settings like Private & NewSession in the Modern Design. So it's not possible to open Chrome in private mode anymore. So currently the only workaround is to hit CTRL+SHIFT+N as Chrome shortcut:
But for me that does not sound like a good solution as browsers can swap that hotkey or having different.
So before without the Modern Design is was possible to set incognito mode in Open Browser:
So why is that feature gone in the Modern Design rework? How to get it back without the workaround and still using the Modern Design?

Private coming 21.4
New session is gone forever because it was targeting IE only, which is out of support

There is a workaround that already allows the incognito mode now in Chrome:
Add Application/Browser
Add new Chrome Application to the Object Repository (or click Indicate application ...)
Now do NOT create a screen (if the Create screen window is now opened close it)
Select the Use Browser Chrome and go to property Unified Application Target > Arguments
Type in --incognito
Click on the Burger menu of Use Browser Chrome
In the dropdown select Add Screen to Object Repository
Create the Screen now
All done. When you now check Use Browser Chrome for the Unified Application Target > Arguments it should still say --incognito.

Related

Open a popup (e.g. native browser) from a Teams desktop client app tab

Is there any way to pop open a browser window from a Teams app tab (desktop client)?
I came across the following link and from my interpretation of the reply it seems it's not possible.
Quoted from link for reference:
Unfortunately it’s not possible to use window.open in Teams tabs. Because we block opening of new windows to arbitrary sites within our Teams Desktop Client (for security reasons) you need to always use microsoftTeams.authentication.authenticate (if you want a popup window) or microsoftTeams.tasks.startTask (if you want an iframe-based dialog) to open a secondary app view.
It's not very clear to me what the microsoftTeams.authentication.authenticate reference above is suggesting.
Alternatively, if not a browser window, can we attempt to open another app installed on the device (e.g. Excel)?
Thanks in advance!
Are you just wanting to launch a new browser entirely? If so, a regular anchor tag, with a target attribute (e.g. ...), will work fine (I'm doing this in a tab myself, and it's working without problem).
You could try using a TaskModule to open a custom HTML/ Javascript or an iframe based widget inside a popup from within your Teams tab.
microsoftTeams.authentication.authenticate() will let you Authenticate the user against you tab. You can find the docs for this here.

Is there a way to make the displayed tab in Firefox "follow" the opened Inspector window(s)?

When I am debugging frontend work, I frequently have multiple Inspector windows open at the same time, each inspecting a different page. As I change Inspector windows, I would like the displayed tab or window to follow me. In other words, I would like the browser to always automatically change to the page I am inspecting; I do not want to change Inspector windows, then go to the browser and find the corresponding tab or window myself.
Is this possible in Firefox? Is it possible in any browser?
(I realize I could dock the Inspector to each tab or window. I do not want to do that because I use the multiple Inspector windows side-by-side for comparison.)
While I am not aware of any way to switch to the target browser tab when selecting a given inspector window, you can certainly do it the other way around:
Say you have 3 tabs opened, and you have opened devtools for each them, in window-mode (undocked). Now, whenever you select any of these 3 tabs, if you just hit F12 (or ctrl+shift+I/cmd+alt+I), then the corresponding devtools window will be brought to the front.
That's an easy way to keep track of which devtools window is linked to which browser tab.
Now, doing this the other way around would require a new feature to be implemented. This can't really be automatic (or at least hidden behind a config of some sorts) because it could be considered frustrating to some users, having their current tab being switched away from each time they click in a devtools window.
I have filed this bug to get it done: https://bugzilla.mozilla.org/show_bug.cgi?id=1163646

Coded UI testing in multiple IE browser windows

I am testing a chat client at a web service. I thought the best way to do this was to open the website in one internet explorer window, log in, open the chat. Then open a new IE window(in private mode so that the log in details will be forgotten) go the the page and then log in with another user and open the chat, and then start chatting with the other user in the other browser window.
The problem is when I have done everything in the first window and I open a new window, all actions are triggered in the first window even though the second window is selected. Is there any way to select which browser window to use? Or are there better ways to test this functionality without opening two internet explorer windows?
Solved: I solved this by opening a new window in private mode. When I wanted to do actions in that window I defined the browser window as:
BrowserWindow privateWindow = new BrowserWindow();
privateWindow.SearchProperties.Contains("[InPrivate]");
You need to find some characteristic of the two IE windows that is different and ensure that it is included in the search criteria used to find the two windows. However modern browsers are complex, the distinction between windows and tabs it not always clear; window titles can change depending on which tab is selected.
Specific windows are selected by setting the properties of the UITestControl objects (and of derived objects). In the UI Map editor the properties panel has fields for the "Windows Title" and the "Search Criteria". For some controls there is also a "Filter Properties" field. The same fields are available if hand coding rather than recording tests.

NPAPI Safari persistent identifier for browser and tabs

I have a Safari Extension and an NPAPI plug-in and am trying to get an identifier for both a browser and tab that is persistent across loads until the window/tab is closed. One of the objects that I use needs to look up a tab by some identifier. On our Windows implementation, they use windowing APIs to get the pointer to the window (to represent the tab) and walk up the parents list to get the top level window (to represent the browser).
Is there anything like this on Mac Safari?
There is no way to get a pointer to the browser's window in any Mac browser that runs plugins out of process (which includes 64-bit Safar), because windows aren't shareable across processes. Moreover, the concept seems deeply flawed on any platform; many browsers allow dragging a tab out of one window and into another. Do you want your plugin to suddenly believe it's in a new page in this case even though the user hasn't even reloaded the page?
I can't think of any way you can track tabs given that the API has no concept of tabs. I'd strongly recommend revisiting this requirement, given that it seems very arbitrary from a user perspective. (For example, if I reload a page, that's the same, but if I close a tab and then immediately re-open it using the browser's version of undo-close-tab, it's not? And as noted above, if I drag a tab between windows, the tab is somehow different?)

Open a URL in Firefox in current tab/window from a Windows application?

I have a Windows application that works with Firefox. If Firefox is already open, I'd like to have it open a given URL in the current tab+window as is currently showing. Our application tends to open a lot of URLs and reusing the same browser window makes the most sense. I already have a COM application that works with Internet Explorer, but haven't been able to find something similar for an external application to work with Firefox.
The only way I know of to do this in Firefox is to set the browser.link.open_newwindow preference to 1. Unfortunately this also stops all in-page links from opening a new tab or window.
If you use SeaMonkey as your default browser then you can use the Preferences window under Tabbed Browsing or Link Behaviour to make links from external applications open in the current tab.

Resources