Skip to content

Instantly share code, notes, and snippets.

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.3.1</version>
</dependency>
new WebDriverWait(driver, 45) {
}.until(new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver drv) {
return drv.findElement(By.id("stateProvinceDropdown-US"))
.isDisplayed();
}
});
/** Like assertEquals, but fails at the end of the test (during tearDown) */
public void verifyEquals(boolean s1, boolean s2) {
try {
assertEquals(new Boolean(s1), new Boolean(s2));
} catch (Error e) {
verificationErrors.append(throwableToString(e));
}
}
Checkout from http://google-styleguide.googlecode.com/svn/trunk, revision HEAD, Fully recursive, Externals included
C:\styles\styleguide.xsl
C:\styles\javascriptguide.xml
C:\styles\xmlstyle.html
C:\styles\google_python_style.vim
C:\styles\google-c-style.el
C:\styles\objcguide.xml
C:\styles\cppguide.xml
C:\styles\intellij-java-google-style.xml
C:\styles\styleguide.css
Index: RemoteWebElement.java
===================================================================
--- RemoteWebElement.java (revision 13749)
+++ RemoteWebElement.java (working copy)
@@ -38,7 +38,6 @@
import java.util.List;
import java.util.Map;
-
public class RemoteWebElement implements WebElement, FindsByLinkText, FindsById, FindsByName,
package org.openqa.selenium;
import static org.openqa.selenium.Ignore.Driver.OPERA;
@Ignore(OPERA)
public class ClearTest extends AbstractDriverTestCase {
public void testWritableTextInputShouldClear() {
driver.get(pages.readOnlyPage);
WebElement element = driver.findElement(By.id("writableTextInput"));
@ajayk
ajayk / gist:1205793
Created September 9, 2011 08:52
Python version
C:\Documents and Settings\ajk>python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# c:\python26\lib\site.pyc matches c:\python26\lib\site.py
import site # precompiled from c:\python26\lib\site.pyc
# c:\python26\lib\os.pyc matches c:\python26\lib\os.py
import os # precompiled from c:\python26\lib\os.pyc
import errno # builtin
import nt # builtin
Index: android.rb
===================================================================
--- android.rb (revision 13816)
+++ android.rb (working copy)
@@ -77,11 +77,11 @@
$properties = $sys_properties.read_properties()
$sdk_path = $properties["androidsdkpath"]
$platform = $properties["androidplatform"]
- $adb = Platform.path_for(File.join($sdk_path, "platform-tools", "adb"))
+ $adb = Platform.path_for(File.join($sdk_path, "platform-tools", "adb.exe"))
Index: android.rb
===================================================================
--- android.rb (revision 13816)
+++ android.rb (working copy)
@@ -77,11 +77,11 @@
$properties = $sys_properties.read_properties()
$sdk_path = $properties["androidsdkpath"]
$platform = $properties["androidplatform"]
- $adb = Platform.path_for(File.join($sdk_path, "platform-tools", "adb"))
+ $adb = Platform.path_for(File.join($sdk_path, "platform-tools", "adb.exe"))
Testsuite: org.openqa.selenium.android.AndroidDriverTestSuite
Tests run: 386, Failures: 0, Errors: 1, Time elapsed: 1,512.578 sec
------------- Standard Output ---------------
Making dirs for path C:\DOCUME~1\ajk\LOCALS~1\Temp\LauncherUtilsUnitTest361099340559259884dir\src-dir (assuming path has not already been created)
Making dirs for path C:\DOCUME~1\ajk\LOCALS~1\Temp\LauncherUtilsUnitTest2597230529379230877dir\dest-dir (assuming path has not already been created)
Skipping test: unable to find domain name to use
Skipping test: unable to find domain name to use
Skipping test: unable to find domain name to use
Skipping test: unable to find domain name to use
Skipping test: unable to find domain name to use