Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amrkamal2025 opened this issue Aug 1, 2019 · 1 comment
Open

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

amrkamal2025 opened this issue Aug 1, 2019 · 1 comment

Comments

@amrkamal2025
Copy link

amrkamal2025 commented Aug 1, 2019

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

@sebastien247
Copy link

sebastien247 commented Aug 11, 2019

Because I think Quelenium use JsonWireProtocol and it's now obsolete. Some rewrite is needed to adapt with W3C specification for W3C WebDriver

I'm trying to do it for personal use.

Edit: After little modifications, I can find elements and add arguments to chrome driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants