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.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
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
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); | |
} |
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
public ExpectedCondition<WebElement> visibilityOfElementLocated(final By by) { | |
new ExpectedCondition<WebElement>() { | |
public WebElement apply(WebDriver driver) { | |
WebElement element = driver.findElement(by); | |
return element.isDisplayed() ? element : null; | |
} | |
} | |
} | |
Wait<WebDriver> wait = new WebDriverWait(driver, 20); |
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
com.thoughtworks.selenium.SeleniumException: org%2Eopenqa%2Egrid%2Einternal%2EGridException%3A+Session+not+available+%2D+%5B%5D | |
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112) | |
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:183) | |
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:118) | |
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:101) | |
at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:362) | |
at org.openqa.selenium.FooTest.doSomething(FooTest.java:12) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
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
package org.openqa.selenium; | |
import com.google.common.collect.Lists; | |
import com.thoughtworks.selenium.DefaultSelenium; | |
import com.thoughtworks.selenium.Selenium; | |
import org.junit.Test; | |
import java.util.List; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; |
OlderNewer