What is DRIVER.MANAGE().WINDOW().MAXIMIZE() ? Now we 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 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 of members in a java class. Static and Non-static. 2. Static methods can be called using class name or by creating an object of that class but calling by class name is perfect practice. 3. Non-static members of class can be called only through object of class. 4. A method can return a type. It may be class or interface as well. #JAVACODE to learn how to call static and non-static methods: public class Demo { void NonStaticMethod() { System.out.println("Non static method"); } static ...
Software Quality Assurance