soy un novato con WebDriver y necesito un poco de ayuda ..No se ha podido conectar al servidor 127.0.0.1 en el puerto 7055
estoy usando selenio 2.2.0 con FF v7.0.1 en Windows XP
I He logrado grabar y reproducir un script java con éxito en IE, pero cada vez que intento ejecutar el mismo script en FF, aparece el siguiente mensaje de error:
No se puede conectar al host 127.0.0.1 en el puerto 7055 después de 45000 ms
He leído en el número de lugares que si bajó la categoría f La versión 3.6 del script de irefox funcionará bien, pero no estoy interesado en la degradación. ¿Puede alguien decirme qué estoy haciendo mal?
package hisScripts;
import java.util.concurrent.TimeUnit;
import org.junit.*;
import static org.junit.Assert.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class WebdriverTest_1 {
private WebDriver driver;
private String baseUrl;
private StringBuffer verificationErrors = new StringBuffer();
@Before
public void setUp() throws Exception {
driver = new FirefoxDriver();
//driver=new InternetExplorerDriver();
baseUrl = "https://**********/";
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
@Test
public void testUntitled() throws Exception {
driver.get(baseUrl + "/");
driver.findElement(By.xpath("//a[contains(text(),'my profile')]")).click();
driver.findElement(By.xpath("//a[contains(text(),'about the service')]")).click();
driver.findElement(By.xpath("//a[contains(text(),'contact us')]")).click();
driver.findElement(By.xpath("//a[contains(text(),'help')]")).click();
driver.findElement(By.xpath("//a[contains(text(),'home')]")).click();
driver.findElement(By.xpath("//a[contains(text(),'logout')]")).click();
}
@After
public void tearDown() throws Exception {
driver.quit();
String verificationErrorString = verificationErrors.toString();
if (!"".equals(verificationErrorString)) {
fail(verificationErrorString);
}
}
private boolean isElementPresent(By by) {
try {
driver.findElement(by);
return true;
} catch (NoSuchElementException e) {
return false;
}
}
}
El código está bien. ¿Qué hay de la actualización? De FF7 a, digamos, FF9 o 10? El selenio no puede funcionar bien con FF11 (hasta ahora), ¡pero el FF9 funciona bien! –
@slanec - He actualizado a FFv10.0.2 pero todavía no me gusta - ¿hay algo más que pueda hacer para resolver este problema? – user929258
absolutamente ninguna idea = (. –