JXBrowser-JavaSwing
Integrate your system with JXBrowser. (Clone Safari)
Video: https://youtu.be/3C53qRco-Kw
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Built With
Documentation JXBrowser - https://jxbrowser.support.teamdev.com/support/solutions
Tutorial - https://www.youtube.com/watch?v=7rVChaNN33U
Installing
Follow these steps for the integration to work properly.
##ONLY WORKS WITH JDK 1.8!!!!
This is my license, this line of code is MANDATORY to work!
BrowserUtil.setVersion(Version.V6_22);
This is optional, it is for you to create a "profile" for the browser, so it will always save a session of WhatsApp, Facebook, etc ... It's like the history of Google Chrome
BrowserContextParams params = new BrowserContextParams(perfil);
BrowserPreferences.setChromiumSwitches("user-data-dir=" + perfil);
BrowserContext context = new BrowserContext(params);
browser = new Browser(context);
Running the tests
If you want a fixed URL, do not put a String as a parameter, change the String to a true URL, for example: www.google.com. If you want to create something interactive, use the String.
//browser.loadURL(URL);
browser.loadURL("www.google.com");
//Back Page
browser.goBack();
//Forward Page
browser.goForward();
//reload
browser.reload();