You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
I have a problem running selenium tests with phantomjs from Java. I am aware that phantomjs doesn't support flash. I am running dual tests with chromedriver without flash enabled and phantom. on a page that chromedriver displays no flash plugin enabled, it just loads the rest of the page and reads it correctly. The phantom tests throw an exception of timeout to an element but thats normal because the screenshot shows that the page doesn't load.
The code to reproduce the problem follows:
public void test() throws InterruptedException {
//System.setProperty("webdriver.chrome.driver", Application.chromeDriverPath);
//WebDriver driver= new ChromeDriver();
WebDriver driver=new PhantomJSDriver();
driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
driver.manage().window().setSize(new Dimension(1280, 800));
driver.get("http://www.betfred.com/sport");
WebElement footballLink=driver.findElement(By.linkText("Football"));
footballLink.click();
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement europeanLink= wait.until(ExpectedConditions.visibilityOfElementLocated(By.partialLinkText("European Leagues")));
europeanLink.click();
wait = new WebDriverWait(driver, 10);
WebElement leagueLink= wait.until(ExpectedConditions.visibilityOfElementLocated(By.partialLinkText("Swiss Super League")));
leagueLink.click();
wait = new WebDriverWait(driver, 10);
WebElement finalLeagueLink=wait.until(ExpectedConditions.elementToBeClickable((By.xpath("//a[contains(text(),'Swiss Super League') and contains(@class,'action')]"))));
Thread.sleep(1000);
finalLeagueLink.click();
driver.switchTo().frame("sportframe");
wait = new WebDriverWait(driver, 30);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[contains(text(),'Swiss Super League')]")));
}
test passes with chromedriver
The text was updated successfully, but these errors were encountered:
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
I have a problem running selenium tests with phantomjs from Java. I am aware that phantomjs doesn't support flash. I am running dual tests with chromedriver without flash enabled and phantom. on a page that chromedriver displays no flash plugin enabled, it just loads the rest of the page and reads it correctly. The phantom tests throw an exception of timeout to an element but thats normal because the screenshot shows that the page doesn't load.
The code to reproduce the problem follows:
public void test() throws InterruptedException {
//System.setProperty("webdriver.chrome.driver", Application.chromeDriverPath);
//WebDriver driver= new ChromeDriver();
WebDriver driver=new PhantomJSDriver();
driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
driver.manage().window().setSize(new Dimension(1280, 800));
}
test passes with chromedriver
The text was updated successfully, but these errors were encountered: