RSS

Category Archives: Java

How to launch Chrome remotely with arguments

I’m trying to modify one part of our selenium_iStock-585x318
framework that launches Chrome like this:

Read the rest of this entry »

 
Leave a comment

Posted by on 19/08/2016 in Java, Selenium

 

Selenium WebDriver – Test if element is present

Find elements will return an empty list ifselenium no matching elements are found instead of an exception.To check that an element is present, you could try this:

Read the rest of this entry »

 
Leave a comment

Posted by on 22/03/2016 in Java, Selenium

 

Capabilities & Chrome Options


1024px-Chrome_Logo.svg

Capabilities are options that you can use to customize and configure a ChromeDriver session. This page documents all ChromeDriver supported capabilities and how to use them.

There are two ways to specify capabilities.

  1. The first is to use the ChromeOptions class.
  2. If your client library does not have a ChromeOptions class (like the selenium ruby client), you can specify the capabilities directly as part of the DesiredCapabilities.

Read the rest of this entry »

 
Leave a comment

Posted by on 15/03/2016 in Java, Selenium

 

Convert Milliseconds To Hours, Minutes, And Seconds

So this is embarrassing, but I needed to re-do a lab sincejava_logo_square_sticker-r8d8dadc5559a4f07a938cfbe473ccbde_v9wf3_8byvr_512 my teacher lost it and I deleted the file! I would appreciate any guidance. I think the title is self explanatory , so I am pretty much stuck with some of my math and am getting an error – it says it cannot find symbol ‘convert’ on line 13?

Read the rest of this entry »

 
Leave a comment

Posted by on 07/03/2016 in Java

 

API types

I’m putting together a list of the various types of API we might encounter. This is primarily a resource for technical writers, who may need to know what type of thing they could be asked to document if they take on the role of API tech writer.

Read the rest of this entry »

 
Leave a comment

Posted by on 07/03/2016 in Java

 

System.currentTimeMillis vs System.nanoTime

If you’re just looking for extremely precise measurements of elapsed time, use

Read the rest of this entry »

 
Leave a comment

Posted by on 04/03/2016 in Java

 

Google authorization with Java and Selenium WebDriver

If you want authorization your site with google authorization you can use Java + Selenium webdriver. Please take a look java code and use it in your project.

Read the rest of this entry »

 
Leave a comment

Posted by on 24/09/2015 in Java, Selenium

 

Tags: ,