Changeset 4864 for devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/CalendarTodayViewPage.java
- Timestamp:
- 07/27/11 11:23:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/CalendarTodayViewPage.java
r3782 r4864 3 3 import org.expressolivre.cte.pages.common.Page; 4 4 import org.openqa.selenium.WebDriver; 5 6 5 7 6 /** … … 18 17 } 19 18 19 /** 20 * Procura o "id" do compromisso baseado no titulo do mesmo. 21 * 22 * @param title 23 * Titulo do compromisso. 24 * @return "id" do compromisso. 25 */ 26 public String getAppointmentId(String title) { 27 String source = driver.getPageSource(); 28 int i = source.indexOf("\"title\":\"" + title); 29 int j = source.indexOf("\"id\":", i); 30 return source.substring(j + 5, source.indexOf(",", j)); 31 } 20 32 }
Note: See TracChangeset
for help on using the changeset viewer.