Skip to content

I can't run a sample test using selenium server 3.141.59 #2

@amrkamal2025

Description

@amrkamal2025

Hello,

I am using QT 5.13.0 with Mingw32 compiler, on Windows 10, I compiled the project and add it to my project and run the jar server, then i use this sample code to run a sample write to a google search bar here

#include <QCoreApplication>
#include <webdriver.h>
#include <webdriverexception.h>
#include <server.h>
#include <options.h>
#include <QDebug>
#include <QUrl>
#include <QThread>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);



    try {
        WebDriver* driver = new WebDriver("127.0.0.1", 4444, Browser::FIREFOX);
        driver->get("www.google.com");
        WebElement *element = driver->findElement(By::name("q"));
        element->sendKeys("hello world");
    } catch (WebDriverException* e) {
        qDebug() << e->message().toUtf8();
    }
    return a.exec();
}

The FireFox started and the page loaded but I got this error and nothing is written

Error get ELEMENT
"POST /session/45310949-afd9-4ce0-a9a1-77df93c3215f/element//value\nBuild info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'\nSystem info: host: 'DESKTOP-BI1B950', ip: '192.168.1.3', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_201'\nDriver info: driver.version: unknown"

so any help is the project need to update, should I use an old version from the server?, please help and thanks for this big effort this one is amazing for QT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions