Skip to content

Instantly share code, notes, and snippets.

@lfryc
Created December 19, 2011 11:55
Show Gist options
  • Save lfryc/1496864 to your computer and use it in GitHub Desktop.
Save lfryc/1496864 to your computer and use it in GitHub Desktop.
WebDriver client;
JSFServerSession server;
void testMethod() {
WebElement element = client.get...
element.click();
// test goes to server
FacesContext facesContext = server.getFacesContext();
assertEquals(...);
// test goes to client
WebElement element1 = client.get...
assertEquals(...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment