org.openqa.selenium.support.How Java Examples

The following examples show how to use org.openqa.selenium.support.How. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByClassName(){
  assertThat(How.CLASS_NAME.buildBy(VALUE).toString()).isEqualTo(By.className(VALUE).toString());
}
 
Example #2
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByCss(){
  assertThat(How.CSS.buildBy(VALUE).toString()).isEqualTo(By.cssSelector(VALUE).toString());
}
 
Example #3
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildById(){
  assertThat(How.ID.buildBy(VALUE).toString()).isEqualTo(By.id(VALUE).toString());
}
 
Example #4
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByIdOrName(){
  assertThat(How.ID_OR_NAME.buildBy(VALUE).toString())
      .isEqualTo(new ByIdOrName(VALUE).toString());
}
 
Example #5
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByLinkText(){
  assertThat(How.LINK_TEXT.buildBy(VALUE).toString()).isEqualTo(By.linkText(VALUE).toString());
}
 
Example #6
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByName(){
  assertThat(How.NAME.buildBy(VALUE).toString()).isEqualTo(By.name(VALUE).toString());
}
 
Example #7
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByPartialLinkText(){
  assertThat(How.PARTIAL_LINK_TEXT.buildBy(VALUE).toString())
      .isEqualTo(By.partialLinkText(VALUE).toString());
}
 
Example #8
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByTagName(){
  assertThat(How.TAG_NAME.buildBy(VALUE).toString()).isEqualTo(By.tagName(VALUE).toString());
}
 
Example #9
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildByXpath(){
  assertThat(How.XPATH.buildBy(VALUE).toString()).isEqualTo(By.xpath(VALUE).toString());
}
 
Example #10
Source File: HowTest.java    From selenium with Apache License 2.0 4 votes vote down vote up
@Test
public void testBuildUnset(){
  assertThat(How.UNSET.buildBy(VALUE).toString()).isEqualTo(By.id(VALUE).toString());
}