- [bug guard WTR-346] Should
Image#{width,height,file_size}return String or Integer? - [bug guard WTR-347]
{Button,Image}#srcreturns full path in IE, actual attribute in Celerity - add deviation guard? (This also affects theImage#file_created_datespec) - [deviation guard]
Element#stylereturns actual style string on Celerity, calculated style in IE - [bug guard WTR-348] Browser#status does not return the value of window.status
- [bug guard WTR-350]
Element#to_sincludes tag name in Celerity, not in Watir. Perhaps these should be changed anyway? - [bug guard WTR-351]
Element.newraises ArgumentError with wrong message - [deviation guard]
Div#textshould return an empty string if the div is hidden. Or should it?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Button | |
| extend ElementHelper | |
| add_specifier :tag_name => 'input', :types => %w[button submit image reset] | |
| add_specifier :tag_name => 'button' | |
| container_method :button | |
| container_collection_method :buttons | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ** ruby.js -- Ruby-style object extensions for JavaScript | |
| ** Copyright (c) 2006 Florian Gross <[email protected]> | |
| ** Copyright (c) 2007 Ralf S. Engelschall <[email protected]> | |
| ** Licensed under GPL <http://www.gnu.org/licenses/gpl.txt> | |
| ** | |
| ** This is derived from the Florian Gross' "ruby.js", version 0.4.0 as | |
| ** of 2005-09-05 from http://flgr.0x42.net/ruby.js/, which implements | |
| ** some of Ruby's standard library functions in JavaScript. It was | |
| ** reformatted and cleaned up (especially semicolons additions to allow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ptr = FFI::MemoryPointer.new(:pointer) | |
| ptr.put_string(0, "some string") # => IndexError: Memory access offset=0 size=18 is out of bounds | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rubygems" | |
| require "java" | |
| require "json" | |
| require "rack" | |
| require "thread" | |
| Dir['build/*.jar'].each { |e| require e } | |
| require "remote/common/lib/runtime/json-20080701.jar" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| screen: "null", | |
| "message":"Unable to locate element: | |
| { | |
| \"method\":\"id\", | |
| \"selector\":\"nonexistant\" | |
| } | |
| \nSystem info: os.name: 'Mac OS X', | |
| os.arch: 'x86_64', | |
| os.version: '10.6.1', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When /^I search for "(.+?)"$/ do |keyword| | |
| @site.action_for(context.vertical, context.sub_vertical, context.search_type).search keyword | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: [Exception... "Component returned failure code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.getService]" nsresult: "0x80570018 (NS_ERROR_XPC_BAD_IID)" location: "JS frame :: chrome://fxdriver/content/server.js :: anonymous :: line 35" data: no] | |
| Source File: chrome://fxdriver/content/server.js | |
| Line: 48 | |
| ============= | |
| # | |
| # Which I guess is the cause of this: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ...BlackListPage | |
| text_field(:email) { @browser.text_field(:id, "emailField") } | |
| button(:search) { @browser.button(:id, 'search') } | |
| def fill(params = {}) | |
| self.email = params[:email] | |
| search! | |
| end |