Witam
Probuje napisać program który uzywa biblioteki Webdriver++ do obsługi stron WWW.
Podczas działania programu rzucany jest wyjatek a w oknie konsoli pojawia się coś takiego:
terminate called after throwing an instance of 'webdriverxx::WebDriverException'
what(): Cannot perform HTTP request (result: 7, message: Failed to connect to localhost port 4444: Connection refused) at line 67, file ../BrowserClickBot/./include/webdriverxx/detail/http_request.h called from Upload (request: POST, command: session, resource: http://localhost:4444/wd/hub/, data: {"desiredCapabilities":{"browserName":"firefox","platform":"ANY","version":""},"requiredCapabilities":{}}) called from CreateSession
Dopiero zaczynam zabawe z biblioteka a tu nie działa nawet przykład zawarty na ich stronie.
Wie ktoś co jest przyczyną błędu?
main.cpp
#include "./include/webdriverxx.h"
using namespace webdriverxx;
using namespace std;
using namespace webdriverxx;
int main()
{
WebDriver firefox = Start(Firefox());
firefox
.Navigate("http://google.com")
.FindElement(ByCss("input[name=q]"))
.SendKeys("Hello, world!")
.Submit();
}
Jezeli ktos bedzie chciał pobawić sie biblioteką to napisze instrukcje jak zainstalować bo miałem z tym trochę kłopotów.
Pracuje na GNU/Linux Mint Mate
Uzywam Qt Creatora