Skip to content

Instantly share code, notes, and snippets.

@knorrium
Created May 17, 2010 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knorrium/404304 to your computer and use it in GitHub Desktop.
Save knorrium/404304 to your computer and use it in GitHub Desktop.
//this demo uses http://www.cheltladiescollege.org/college/exams.asp
//to try to help @dckismet extracting cell text
package demo;
import org.testng.annotations.Test;
import common.BaseTest;
public class tables extends BaseTest {
@Test
public void testTables() {
selenium.open("/college/exams.asp");
for (int i=1; i <= 7; i++){
System.out.println(selenium.getText("xpath=//*[.='Candidates']/following::td[" + i + "]"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment