package com.dilook.training.selenium;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * Created by Di on 15.08.2017.
 */
public class MyFirstTest {

    private WebDriver webDriver;

    @Before
    public void start() {
        webDriver = new ChromeDriver();
    }

    @Test
    public void myFirstTest() {
        webDriver.get("http://izh-it.ru");
    }

    @After
    public void stop() {
        webDriver.quit();
        webDriver = null;
    }

}

@@ -104,16 +104,60 @@
 t.Test;%0A
+import org.openqa.selenium.HasCapabilities;%0A
 import o
@@ -233,16 +233,120 @@
 eDriver;
+%0Aimport org.openqa.selenium.chrome.ChromeOptions;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;
 %0A%0A/**%0A *
@@ -491,37 +491,452 @@
     
-webDriver = new ChromeDriver(
+ChromeOptions opt = new ChromeOptions();%0A        opt.addArguments(%22start-fullscreen%22);%0A        DesiredCapabilities caps = new DesiredCapabilities();%0A        caps.setCapability(%22unexpectedAlertBehaviour%22, %22dismiss%22);%0A        caps.setCapability(ChromeOptions.CAPABILITY, opt);%0A        webDriver = new ChromeDriver(caps);%0A        HasCapabilities capabilities = (HasCapabilities) webDriver;%0A        System.out.println(capabilities.getCapabilities()
 );%0A 

add capabilities