Skip to content

Commit

Permalink
Update to fix bug in Etsy test URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
djangofan committed Sep 10, 2013
1 parent 3dc5a5f commit 007946b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Binary file not shown.
Expand Up @@ -204,7 +204,7 @@ else if ( type.equalsIgnoreCase( "chrome" ) ) {

public static void initializeRemoteBrowser( String type, String host, int port ) {
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability( "takesScreenshot", false );
dc.setCapability( "takesScreenshot", true );
dc.setCapability( "webdriver.remote.quietExceptions", false );
try {
if ( type.equalsIgnoreCase( "firefox" ) ) {
Expand Down
4 changes: 1 addition & 3 deletions etsy/src/test/java/qa/webdriver/tests/EtsyTest1.java
Expand Up @@ -13,8 +13,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.openqa.selenium.By;

import au.com.bytecode.opencsv.CSVReader;
import qa.webdriver.util.EtsySearchPage;
import qa.webdriver.util.WebDriverUtils;
Expand Down Expand Up @@ -68,7 +66,7 @@ public void testWithPageObject() {
gs.selectInEtsyDropdown( ddMatch );
gs.clickSearchButton();
waitTimer(2, 1000);
getElementByLocator( By.cssSelector( "h1#etsy a" ) ).click(); // click Google logo
gs.clickEtsyLogo(); // click Etsy logo
classlogger.info("Page object test '{}' is done.", testName );
}

Expand Down
6 changes: 2 additions & 4 deletions etsy/src/test/java/qa/webdriver/tests/EtsyTest2.java
Expand Up @@ -13,8 +13,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.openqa.selenium.By;

import au.com.bytecode.opencsv.CSVReader;
import qa.webdriver.util.EtsySearchPage;
import qa.webdriver.util.WebDriverUtils;
Expand Down Expand Up @@ -68,14 +66,14 @@ public void testWithPageObject() {
gs.selectInEtsyDropdown( ddMatch );
gs.clickSearchButton();
waitTimer(2, 1000);
getElementByLocator( By.cssSelector( "h1#etsy a" ) ).click(); // click Google logo
gs.clickEtsyLogo(); // click Etsy logo
classlogger.info("Page object test '{}' is done.", testName );
}

@Test
public void testFluentPageObject() {
classlogger.info("{} being run...", testName );
driver.get( System.getProperty("testURL") + "webhp?hl=en&tab=ww" );
driver.get( System.getProperty("testURL") );
EtsySearchPage esp = new EtsySearchPage();
esp.withFluent().clickSearchField()
.setSearchString( searchString ).waitForTime(2, 1000)
Expand Down

0 comments on commit 007946b

Please sign in to comment.