Coder Social home page Coder Social logo

linotex / quelenium Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 208 KB

Qt library for Selenium Server Standalone

License: GNU General Public License v2.0

QMake 1.15% C++ 95.62% HTML 3.23%
qt qt5 selenium selenium-webdriver test-automation testing testing-tools

quelenium's People

Contributors

linotex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

quelenium's Issues

How to use selenium?

How to use selenium?
it is need Selenium Standalone Server?
can you give me some examples?

thanks!

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.