The instructions below are for Debian, but with Ubuntu you would also need to use ‘sudo’ if you are not running as root First you need to install Java, if you have not already. This page has instructions on how to install Java 1.8 using apt-get Installing Oracle Java 8 on Debian/Ubuntu Now let’s get …
Create the following file add the following line to it and then to install it simply run the following
Here are the dependencies you will need to use Selenium and PhantomJS with Maven. and in your code call the following WebDriverManager downloads the latest version of the required PhantomJS binary to be used with Selenium WebDriver.
For some time I was using imapx, but sometimes it throws exceptions. I’ve checked their site and other people are having the same problem with no solution. So afterlooking for another imap library I found the ones below to work the best MailSystem.NET MailKit
If you want to kill all processes with a matching name, there is a command for that. pkill -f accepts a regular expression pattern as a parameter.
When using PhantomJS visa GhostDriver with Selenium, you will get all kinds of log messages which would not be necessary in some instances. The example below shows how to disable these log messages.
The following applies if you are running a console based multi-threaded Java application. You can get a full stack dump by pressing the following keys on your keyboard. Ctrl+Break
If you want to time the response time of your webrequests/proxies, etc using C# there is a easy way to do it. We need to use a stopwatch object as shown in the example.
If your Java application makes use of files using paths, it’s best not to use slash “/” or backslash “\” hard coded in your source code. Use the following to ensure your program would work as expected on both Windows and Unix like systems.