Created
May 17, 2010 22:18
-
-
Save knorrium/404304 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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