Selenium - IE WebDriver не открывает URL с помощью get () - PullRequest
0 голосов
/ 10 июля 2019

IE WebDriver успешно открывает браузер IE, но не смог перейти по указанному мною URL.

Я использовал driver.get (url) Вот фрагмент кода:

  public class StationCheckStepDef  {

    public static long DEFAULT_WAIT = 20;
    protected static WebDriver driver;

    @Given("^User Opens the Station Check Application$")
    public void open_the_Station_Check_Application() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
        System.out.println("This step opens the Station Check app");
        System.setProperty("webdriver.ie.driver", "C://Projects//stationcheckstesting//src//test//resources//drivers//IEDriverServer.exe");                 
        driver = new InternetExplorerDriver();                  
        driver.manage().timeouts().setScriptTimeout(DEFAULT_WAIT,TimeUnit.SECONDS);
        driver.manage().window().maximize();    
        driver.get("http://google.com");


    }

code snippet

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...