Nadal nie mogę tego obliczyć. Kilka dni temu miałem selen działający dobrze; teraz rzuca mi trochę błędów. Najpierw używam NuGeta, a następnie próbowałem go ręcznie zainstalować.Selenum chromedriver nie działa
jak odtworzyć problem:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using System.Threading.Tasks;
namespace Debug
{
class Program
{
static void Main(string[] args)
{
try
{
IWebDriver driver = new ChromeDriver();
driver.Navigate().GoToUrl("http://stackoverflow.com/");
}
catch (Exception ex)
{
Console.Clear();
Console.WriteLine(ex);
Console.ReadKey();
}
}
}
}
Błąd:
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:60695/session . The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Socket
Jak zainstalować selen, pobieranie z http://selenium-release.storage.googleapis.com/3.0/selenium-dotnet-3.0.0.zip
poszedł na VS i dodaje tylko pliki DLL do referencji
Mam ten sam problem od tego tygodnia. Co dziwne, testy nadal działają na naszym serwerze UAT, ale nie działają lokalnie z tym samym błędem co Ty. –
Aktualizacja do nowszej wersji chromedriver naprawiła problem dla mnie! –