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 example below shows how you can configure PhantomJS to use proxies with your web testing.
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.
If you find that your Java application is running our of heap space and you don’t have a memory leak, you can give the JMV more memory. This is very simple to do by starting your java application with the following argument. You have three options for increasing size
If you do any socket programming on Java or use any library that does, there will come a time that you need to monitor the traffic going through your application. You will need the following class in order to see the traffic in Fiddler You can initialize the above class by the following