This file contains 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
diff --git a/10_element_state.html b/10_element_state.html | |
--- a/10_element_state.html | |
+++ b/10_element_state.html | |
@@ -109,77 +109,41 @@ | |
<td></td> | |
</tr> | |
</table> | |
- <p>Although the [[!html51]] spec is very clear about the difference between the properties and attributes of a <a href='http://w3c.github.io/dom/#element'>Document <code>element</code></a>, users are frequently confused between the two. Because of this, the WebDriver API offers a single command ("getElementAttribute") which covers the case of returning either of the value of a <a href='http://w3c.github.io/dom/#element'>Document <code>element</code></a> property or attribute. If a user wishes to refer specifically to an attribute or a property, they should evaluate Javascript in order to be unambiguous.</p> | |
+ <div class="note"> | |
+ <p>Although the [[!html51]] spec is very clear about the difference between the properties and attributes of a <a href='http://w3c.g |
This file contains 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
diff --git a/10_element_state.html b/10_element_state.html | |
--- a/10_element_state.html | |
+++ b/10_element_state.html | |
@@ -109,77 +109,42 @@ | |
<td></td> | |
</tr> | |
</table> | |
- <p>Although the [[!html51]] spec is very clear about the difference between the properties and attributes of a <a href='http://w3c.github.io/dom/#element'>Document <code>element</code></a>, users are frequently confused between the two. Because of this, the WebDriver API offers a single command ("getElementAttribute") which covers the case of returning either of the value of a <a href='http://w3c.github.io/dom/#element'>Document <code>element</code></a> property or attribute. If a user wishes to refer specifically to an attribute or a property, they should evaluate Javascript in order to be unambiguous.</p> | |
+ <div class="note"> | |
+ <p>Although the [[!html51]] spec is very clear about the difference between the properties and attributes of a <a href='http://w3c.g |
This file contains 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
Components.utils.import('resource://gre/modules/Services.jsm'); | |
Components.utils.import('resource://gre/modules/ctypes.jsm'); | |
var browserWindow = Services.wm.getMostRecentWindow('navigator:browser'); | |
if (!browserWindow) { | |
throw new Error('No browser window found'); | |
} | |
var baseWindow = browserWindow.QueryInterface(Ci.nsIInterfaceRequestor) | |
.getInterface(Ci.nsIWebNavigation) | |
.QueryInterface(Ci.nsIDocShellTreeItem) |
This file contains 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
Index: javascript/atoms/test/locator_test.html | |
=================================================================== | |
--- javascript/atoms/test/locator_test.html (revision 11873) | |
+++ javascript/atoms/test/locator_test.html (working copy) | |
@@ -245,9 +245,15 @@ | |
function testShouldSurviveObjectPrototypeBeingModified() { | |
Object.prototype.cheese = 'brie'; | |
+ Object.prototype.Inherits = function() { /* does nothing */ } | |
This file contains 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
Index: javascript/selenium-atoms/firefox-chrome.js | |
=================================================================== | |
--- javascript/selenium-atoms/firefox-chrome.js (revision 12180) | |
+++ javascript/selenium-atoms/firefox-chrome.js (working copy) | |
@@ -1,6 +1,20 @@ | |
goog.provide('core.firefox'); | |
+/** | |
+ * @returns {boolean} Whether the firefox instance needs elements to be |
This file contains 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
[scriptable, uuid(1fce7d93-2b92-44b5-b9cf-d54b6d86c73c)] | |
interface wdIServer : nsISupports | |
{ | |
object newServer(nsIDOMWindow window); | |
}; |
This file contains 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
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.5.1 | |
- RUBY VERSION: 1.9.2 (2011-07-05 patchlevel 136) [java] | |
- INSTALLATION DIRECTORY: file:/usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/gems/1.8 | |
- RUBY EXECUTABLE: java -jar /usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar | |
- EXECUTABLE DIRECTORY: file:/usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar!/META-INF/jruby.home/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- universal-java-1.6 | |
- GEM PATHS: |
This file contains 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
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.5.1 | |
- RUBY VERSION: 1.8.7 (2011-07-05 patchlevel 330) [java] | |
- INSTALLATION DIRECTORY: file:/usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/gems/1.8 | |
- RUBY EXECUTABLE: java -jar /usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar | |
- EXECUTABLE DIRECTORY: file:/usr/local/google/src/opensource/selenium/trunk/third_party/jruby/jruby-complete.jar!/META-INF/jruby.home/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- universal-java-1.6 | |
- GEM PATHS: |
This file contains 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
Finished in 43.37 seconds | |
37 examples, 17 failures | |
Failed examples: | |
rspec ./rb/spec/integration/selenium/client/api/element_spec.rb:4 # Element API can detect element presence | |
rspec ./rb/spec/integration/selenium/client/api/wait_for_field_value_spec.rb:4 # #wait_for_field_value blocks until field is updated | |
rspec ./rb/spec/integration/selenium/client/api/wait_for_field_value_spec.rb:18 # #wait_for_field_value times out when field is never properly updated | |
rspec ./rb/spec/integration/selenium/client/api/wait_for_field_value_spec.rb:34 # #wait_for_no_field_value blocks until field is updated | |
rspec ./rb/spec/integration/selenium/client/api/wait_for_field_value_spec.rb:46 # #wait_for_no_field_value times out when field is never properly updated |
This file contains 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
private WebElement fallbackToSizzle(WebDriver driver, String locator) { | |
WebElement toReturn = (WebElement) ((JavascriptExecutor) driver).executeScript(sizzle, locator); | |
if (toReturn != null) { | |
log.warning("You are using a Sizzle locator as a CSS Selector. " + | |
"Please use the Sizzle library directly via the JavascriptExecutor or a plain CSS " + | |
"selector. Your locator was: " + locator); | |
return toReturn; | |
} | |
throw new NoSuchElementException("Cannot locate element even after falling back to Sizzle: " + locator); | |
} |
OlderNewer