April 7, 2017 – Make Selenium Easy

Hello Folks, In my last post, I explained about some useful methods of WebDriver. I got some comments to explain why do we write syntax as below:

driver.manage().window().maximize(); // To maxmize driver.navigate().to(“some url”); // To open url driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);// To set implicit time

driver.manage().window().maximize(); // To maxmize driver.navigate().to(“some url”); // To open url driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);// To set implicit time

Actually it’s JAVA concept. It is called as method chaining. We will learn about this now. Some basic Concepts of JAVA: 1. There can be two types … Continue reading Why syntax is “driver.manage().window().maximize();”?