Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created June 27, 2011 13:00
Show Gist options
  • Save andreastt/1048811 to your computer and use it in GitHub Desktop.
Save andreastt/1048811 to your computer and use it in GitHub Desktop.
package com.opera.core.systems;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
public class EcmaScriptTest extends TestBase {
@Before
public void setUp() {
driver.navigate().to("file://localhost/home/andreastt/dev/watirspec/html/forms_with_input_elements.html");
}
@Test
public void testXPath() {
driver.findElementsByXPath(".//input[(not(@type) or (@type!=\"file\" and @type!=\"radio\" and @type!=\"checkbox\" and @type!=\"submit\" and @type!=\"reset\" and @type!=\"image\" and @type!=\"button\" and @type!=\"hidden\" and @type!=\"url\" and @type!=\"datetime\" and @type!=\"date\" and @type!=\"month\" and @type!=\"week\" and @type!=\"time\" and @type!=\"datetime-local\" and @type!=\"range\" and @type!=\"color\")) and @class='name'] | .//textarea[@class='name']");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment