输入webdriver自动生成一大串东西为何物

package uiTest;

import org.openqa.selenium.Cookie;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.logging.Logs;

import java.util.Set;

public class SeleniumUi {
    public static void main(String[] args) {
        WebDriver webDriver= new WebDriver.Options() {
            @Override
            public void addCookie(Cookie cookie) {
                System.out.println("addcookie");
            }

            @Override
            public void deleteCookieNamed(String name) {

            }

            @Override
            public void deleteCookie(Cookie cookie) {

            }

            @Override
            public void deleteAllCookies() {

            }

            @Override
            public Set getCookies() {
                return null;
            }

            @Override
            public Cookie getCookieNamed(String name) {
                return null;
            }

            @Override
            public WebDriver.Timeouts timeouts() {
                return null;
            }

            @Override
            public WebDriver.Window window() {
                return null;
            }

            @Override
            public Logs logs() {
                return null;
            }
        };
    }
}

你可能感兴趣的:(工具--各种各样,java,开发语言)