1

When I'm starting the test I see 'data:,' in the chrome address bar and then nothing happens (the program doesn't continue) instead of starting navigating to the url. I am using: chrome=55.0.2883.75 chromedriver=2.25 selenium=3.0.1 platform=Win64

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import static org.junit.Assert.assertEquals;

public class MyClass {

    public static void main(String[] args) {
        WebDriver driver;
        System.setProperty("webdriver.chrome.driver", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chromedriver_win32\\chromedriver.exe");
        driver = new ChromeDriver ();
        driver.get("http://www.google.com");
        driver.manage().window().maximize();
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        driver.findElement(By.xpath("//*[@id='lst-ib']")).sendKeys("facebook");
        driver.findElement(By.cssSelector("input[name='btnK']")).click();
        driver.findElement(By.linkText("Facebook - Log In or Sign Up")).click();

        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.elementToBeClickable(By.id("u_0_n")));

        String expectedTitle = "Facebook - Log In or Sign Up";

        assertEquals(expectedTitle,driver.getTitle());

        driver.quit();
    }
}
moral17592
  • 95
  • 2
  • 6

1 Answers1

1

Try it with the new ChromeDriver exe (2.26). Download here. You can see in the notes that 2.25 suppose to support Chrome 55 but there were bug fixes so try the latest.

Moshisho
  • 2,781
  • 1
  • 23
  • 39
  • You're welcome! I'm working on a [maven plugin](https://github.com/best-est/maven-web-drivers-compatibility-plugin) for these cases... I still have a lot of work to get it done properly... – Moshisho Dec 10 '16 at 16:38
  • Hi, i am using the same Chrome version, along with ChromeDriver 2.26. try to perform webdriver.manage().deleteAllCookies() will throw the following exception: org.openqa.selenium.WebDriverException: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"4064.1","isDefault":true},"id":1,"name":"","origin":"://"}. this excetpion was thrown for previous versions of Chrome and ChromeDriver. Does anyone have an idea ? – Nisim Naim Dec 12 '16 at 09:38
  • 1
    Why don't you ask a new question with those details? I don't know about this issue, but you look for a specific issue in [ChromeDriver's issues](https://bugs.chromium.org/p/chromedriver/issues/list) – Moshisho Dec 12 '16 at 10:57