How can I set my jxbrowser as default browser. Lets suppose I have run java program which open jxbrowser.
Now I want to set that as default browser. Can anybody suggest is that possible ?
Related
I have been starting to use Katalon Studio as a primary tool for testing.
It would make my life easier for some test if when running a test Chrome would open would a specific profile, so that I can have some credentials logged in.
I used the Katalon configuration builder and it looks like this
But Chrome still open as a new, nonexistent user.
Katalon Studio uses ChromeDriver to handle browser, so you should set this preference in ChromeDriver.
By default, ChromeDriver will create a new temporary profile for each
session. At times you may want to set special preferences or just use
a custom profile altogether. If the former, you can use the
'chrome.prefs' capability (described later below) to specify
preferences that will be applied after Chrome starts. If the latter,
you can use the user-data-dir Chrome command-line switch to tell
Chrome which profile to use:
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=/path/to/your/custom/profile");
Built out a Console app to try to open an image in Windows using .NET Core. Kept getting an error.
Process.Start(new ProcessStartInfo(tempFile));
Results in:
Win32Exception: The specified executable is not a valid application
for this OS platform.
What do I need to do to make it open in Windows' default viewer, in my case, the Windows Photo Viewer? For now, I've resorted to display the full image path to copy-paste.
It works if I use .NET 4.6.2, but not .NetCoreApp 1.1. I know its something to do with making it cross-platform friendly(?) but what...
Thanks!
The difference that prevents this from working is that ProcessStartInfo.UseShellExecute defaults to false on .NET Core, and cannot be controlled on Windows. Due to that, the program is trying to launch the image file as an executable, which is not possible. Instead, you can essentially use Process.Start to emulate a shell command in order to open the file with the system's default viewer.
Process.Start("cmd", $"/c {pathToFile}");
Similarly, xdg-open can be used on Linux (generally speaking), and open can be used on OSX.
I am running a launcher in publish instance,the launcher doesn't invoke the workflow when run mode is publish or publish and author but it works when I make run mode as author
Can someone help me with this behaviour of AEM?
Wrokflow launchers are tied to run-modes and you can change the behavior to run to either or both of them. The default dialog height is less hence it is not visible you need to scroll down.
Taken from the Adobe documentation:
When using one of the above run modes (author, publish, samplecontent, nosamplecontent), the value used at installation time defines the run mode for the entire lifetime of that installation.
For these run modes you cannot change them after installation.
You cannot use runmodes author AND publish at the same time (I wonder what AEM will do if you try to set both runmodes) and switching the runmode is also a bad idea.
See https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/configure-runmodes.html for details.
There must be something wrong with your instance. Any log messages?
In Qt, I'm trying to use the system proxy settings. This seems to work well, as long as I do not change them while the application is open.
Once I change the system proxy settings, I've got to close and re-open my application to pick up the new proxy settings.
This is documented in this bug here: https://bugreports.qt.io/browse/QTBUG-3470
Is there any known work-around for this issue? Is this solved in newer versions of Qt (the listed bug was filed against Qt 4.5)?
You could peek at the System Registry values for the system proxy. This is quite straightforward (from what I understand) as Qt has the QSettings api which will give you quick access to the registry.
Check this link out for some info on the registry values.
Check this link out for some info/examples of QSettings.
From How do I get the system proxy using Qt?
QNetworkProxyQuery npq(QUrl("http://www.google.com"));
QList<QNetworkProxy> listOfProxies = QNetworkProxyFactory::systemProxyForQuery(npq);
I have some problems running FlexUnit tests in IntelliJ.
Every time I execute test, Internet Explorer (which is not even set as default browser) pops up and blocks unit test, i.e. blocks it as add so I must allow access through that dumb top bar and then another confirmation and then finally test runs. Is there any way to reconfigure it to another browser or to run it some other way so I just hit the Run button on Idea and I can see results right away?
Thank you for help
As you are using Windows have a look at the first comment by Alexander Doroshko in this bug report: http://youtrack.jetbrains.net/issue/IDEA-49795
Current behavior:
if 'Use system default browser' is selected at Settings | Web Browsers | Default Web Browser then swf/html is started in default OS application (either default browser of standalone Flash player)
if default browser is overridden in IDEA then it is always used both for swf/html.
It would be more convenient if standalone Flash player is used for swfs independently of this setting as soon as it is OS default program for sfws.
I recommend to configure the stand alone flashplayer executable for executing unit tests. As you can also see from the report this has been improved in IDEA 10.