Coder Social home page Coder Social logo

webdriver-sizzle's Introduction

webdriver-sizzle NPM version Build Status

Locate a selenium-webdriver element by sizzle CSS selector.

var selenium = require('selenium-webdriver'),
    sizzle = require('webdriver-sizzle'),
    driver = new webdriver.Builder()
      .withCapabilities(webdriver.Capabilities.phantomjs())
      .build()
    $ = sizzle(driver)

// Find the first element with class btn and click it
$('.btn').click()

// Count the paragraphs
$.all('p').then(function (elements) {
  console.log(elements.count);
});

webdriver-sizzle's People

Contributors

hurrymaplelad avatar ndhoule avatar makebbekus avatar goodeggs-terraformer avatar alexgorbatchev avatar benbuckman avatar serhalp avatar goodeggs-mk avatar

Stargazers

James Ross avatar slava hatnuke avatar Philipp Scheit avatar Chris Roth avatar Han avatar Thomas Meyer avatar  avatar

Watchers

Dave Lowe avatar  avatar  avatar Aaron D Borden avatar Lucas Gertel avatar Wlademyr Mendes avatar Dmitry Golyshev avatar william widmer avatar James Cloos avatar Avery Yen avatar  avatar  avatar  avatar Harbhajan Singh avatar Mahesh Kommareddi avatar Guilherme Corsino avatar Jason Steele avatar Rishabh Sharma avatar  avatar Nathan avatar Wagner Shimatai avatar Sam Wainwright avatar Lei avatar  avatar Jason Hu avatar  avatar Malik Inkatha avatar Rafael Joseph Reyes Ancheta avatar Nick Sophinos avatar Alffrey Chemmannoor avatar Magnus Andersen avatar Andres Eduardo Rivero Salguedo avatar  avatar  avatar Bruno Castanho de Lima avatar Marcello Thiry avatar João Bragança avatar  avatar Hiago Machado avatar  avatar

webdriver-sizzle's Issues

TypeError: checkSizzleExists(...).then(...).then(...).thenCatch is not a function

expect('#bcomments').dom.to.be.visible();
TypeError: checkSizzleExists(...).then(...).then(...).thenCatch is not a function
    at finder (..\node_modules\webdriver-sizzle\lib\webdriver_sizzle.js:47:10)
    at call (...\selenium-webdriver\lib\webdriver.js:1037:28)
    at ...node_modules\selenium-webdriver\lib\webdriver.js:916:19
    at ManagedPromise.invokeCallback_ (node_modules\selenium-webdriver\lib\promise.js:1384:14)
    at TaskQueue.execute_ (\node_modules\selenium-webdriver\lib\promise.js:3092:14)
    at TaskQueue.executeNext_ (node_modules\selenium-webdriver\lib\promise.js:3075:27)
    at asyncRun (node_modules\selenium-webdriver\lib\promise.js:2982:25)
    at node_modules\selenium-webdriver\lib\promise.js:676:7

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.