Link to home
Start Free TrialLog in
Avatar of chima
chima

asked on

Java syntax, or is it Selenium

Hello, in the code below, what is the ".using...." and ".build()" below.  I have not used this "dot" syntax.
Is it associated with the newly created "service" like service.usingDriverExecutable  and service.build ?

   {@literal @BeforeClass}
   public static void createAndStartService() {
     service = new ChromeDriverService.Builder()
         .usingDriverExecutable(new File("path/to/my/chromedriver.exe"))
         .usingAnyFreePort()
         .build();
     service.start();
   }
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chima
chima

ASKER

macarl, thanks  I like the shorthand once understood.  I just started a training course on Selenium and so I ask you, please keep me on your radar screen for a quick answer.  I do appreciate your help.
Avatar of chima

ASKER

mccarl, might you know the answer to the other Selenium question I have posted?  It has been sitting there for quit some time; Selenium and Interactive Data Language
You're welcome. Unfortunately I don't know much at all about Selenium so I'm not going to be of much help there.
Avatar of chima

ASKER

mccarl, for not knowing much about Selenium, you sure answered this one quit well.
Just lucky that this one is not really Selenium specific. It's a pattern that a lot of Java (and probably other language) libraries use a lot.