forked from mmlewis/twuFunctionalTesting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Molly - fixing null pointer of item id
- Loading branch information
Molly
committed
Jul 25, 2012
1 parent
0d41628
commit 1eeec3c
Showing
4 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import org.junit.Test; | ||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.firefox.FirefoxDriver; | ||
|
||
public class OrderFunctionalTest { | ||
|
||
@Test | ||
public void shouldBeAbleToSubmitOrder() { | ||
WebDriver driver = new FirefoxDriver(); | ||
|
||
driver.get("http://localhost:8080/twuFunctionalTesting/order/new"); | ||
|
||
WebElement nameElement = driver.findElement(By.id("name_field")); | ||
nameElement.sendKeys("awesome"); | ||
|
||
WebElement emailElement = driver.findElement(By.id("email_field")); | ||
emailElement.sendKeys("awesome@awesome.com"); | ||
|
||
WebElement submitButtonElement = driver.findElement(By.id("submitButton")); | ||
submitButtonElement.submit(); | ||
// submitButtonElement.click(); | ||
|
||
driver.close(); | ||
} | ||
} |
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