driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS) is ignored

By design Issue #12281138

Details

Author
Anda C.
Created
Jun 8, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Hello,
I run my code locally:

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package edgedriverbestjobs1;

import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.logging.LogType;
import org.openqa.selenium.logging.LoggingPreferences;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

/**

  • @author andad
    */
    public class SearchJobBestJobs_1{

    private static final String USERNAME = "test13086";
    private static final String AUTOMATE_KEY = "95oQezs5cV45sA287xYe";
    private static WebDriver driver;
    public static final String URL = “https://” + USERNAME + “:” + AUTOMATE_KEY
    + "@hub-cloud.browserstack.com/wd/hub";

    public static void main(String[] args) throws MalformedURLException {
    // TODO code application logic here

     System.setProperty("webdriver.edge.driver",
                 "D:\\Documentatie\\Selenium\\MicrosoftWebDriver.exe");
     
     DesiredCapabilities capabilities = DesiredCapabilities.edge();
    
     capabilities.setCapability(
             CapabilityType.SUPPORTS_APPLICATION_CACHE, false);
    
     capabilities.setCapability("browserstack.user", USERNAME);
     capabilities.setCapability("browserstack.key", AUTOMATE_KEY);
     capabilities.setCapability("browserstack.debug", true);
     LoggingPreferences logPrefs = new LoggingPreferences();
     logPrefs.enable(LogType.BROWSER, Level.ALL);
     logPrefs.enable(LogType.CLIENT, Level.ALL);
     logPrefs.enable(LogType.DRIVER, Level.ALL);
     logPrefs.enable(LogType.SERVER, Level.ALL);
     logPrefs.enable(LogType.PERFORMANCE, Level.ALL);
     capabilities.setCapability(CapabilityType.LOGGING_PREFS,
             logPrefs);
    
     capabilities.setCapability("browser", "Edge");
     capabilities.setCapability("acceptSslCerts", true);
     capabilities.setCapability(CapabilityType.PAGE_LOAD_STRATEGY,
             "eager");
    
     capabilities.setCapability("os", "Windows");
     capabilities.setCapability("os_version", "10");
    
     driver = new EdgeDriver(capabilities);
     driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
     driver.manage().window().maximize();
     driver.get("https://www.bestjobs.eu/ro/");
    
     By bySeach = By.id("keyword");
     WebDriverWait wait = new WebDriverWait(driver, 10);
     wait.until(ExpectedConditions.presenceOfElementLocated(bySeach));
     WebElement anchSignIn = driver.findElement(bySeach);
     anchSignIn.sendKeys("tester");
    
     WebElement btnSearch = driver.findElement(By.className("btn btn-block btn-sm btn-default-success btn-search amplitude"));
     btnSearch.click();
     driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
     driver.quit();
    

    }
    }

and I noticed that driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS) is ignored.

After it click it must remain 1 minute and then quit().

Attachments

0 attachments

    Comments and activity

    You need to sign in to your Microsoft account to add a comment.

    Sign in