Não é possível conectar-se ao host 127.0.0.1 na porta 7055
Eu sou um novato com webdriver e preciso de alguma ajuda ..
Estou usando o Selenium 2.2.0 com FF v7.0.1 no Windows XP
Eu consegui gravar e reproduzir um script java com sucesso no IE, mas sempre que eu tento executar o mesmo script no FF, recebo a seguinte mensagem de erro:
Não é possível conectar-se ao host 127.0.0.1 na porta 7055 após 45.000 ms
Eu li em vários lugares que se eu rebaixar a versão do firefox para o script 3.6 vai funcionar bem, no entanto, eu não estou interessado em fazer downgrade. Alguém pode me dizer o que estou fazendo de errado?
<code>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; } } </code>
}