Unable to compile code line "options.addarguments("--start-maximized") ", using selinum 3.0.1 and using ChromDriver_win32 latest version and eclispe Mars.. Let me know what i am missing. I am able to compile and run my test without options..
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.interactions.Actions;
public class IRSLabTestCase {
WebDriver driver1= new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("--start-maximized"); //--> this line not getting compiled.
driver1 = new ChromeDriver(options);'
}