Giter Site home page Giter Site logo

chauffeur's People

Contributors

lawrencec avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

chauffeur's Issues

Access multiple elements on a page

I have an element in my page model called buildSummaries - it's a list of links who have the selector '.buildSummary a',

The following lines pass my test:

this.buildSummaries.elements(2);
this.buildSummaries(1).link.attr('href', baseUrl + 'build/dev_test_2');

So I have 2 elements (this is correct), and I can access the first OK. But the following line then fails:

this.buildSummaries(2).link.attr('href', baseUrl + 'build/dev_test_1');

With the following exception:

  1. BuildListPage should render correctly on first render:
    Error: Unable to locate element: {"method":"css selector","selector":".buildSummary:nth-child(2) a"}
    Command duration or timeout: 7 milliseconds
    For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
    Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
    System info: host: 'Geoffs-iMac.local', ip: '192.168.0.13', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.7.0_45'
    Session ID: 40f2cfd4-6df5-a445-b0e0-2affff094dd1
    Driver info: org.openqa.selenium.firefox.FirefoxDriver
    Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true, nativeEvents=false, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=30.0}]
    at Function.errorOut as _errorOut
    at WebdriverJs._getExpectationCB (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/lib/driver.js:77:14)
    at /Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/node_modules/chainit/index.js:137:22
    at WebdriverJs. (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/lib/commands/getAttribute.js:15:13)
    at /Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/node_modules/chainit/index.js:137:22
    at RequestHandler. (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/lib/utils/RequestHandler.js:211:13)
    at Request.self.callback (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/node_modules/request/request.js:121:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request. (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/node_modules/request/request.js:978:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage. (/Users/ghopson/Workspace/myproject/node_modules/page-chauffeur/node_modules/webdriverjs/node_modules/request/request.js:929:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

I am seeing this a lot e.g. testing table data elements, I can only see the ones on the first row. Is it the selector?

Set window size for default phantomJS driver

The default phantomJS driver window size is too small for our tests. Can you provide an API to set the window size on the browser object (or perhaps an enum for desktop, ipad, iphone, kindle etc dimensions)?

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.