public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebTable) htmlElement).getID(), (String) criteria ); }; };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebLink) htmlElement).getName(), (String) criteria ); } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebForm) htmlElement).getName(), (String) criteria ); } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebLink) htmlElement).getText(), (String) criteria ); } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebLink) htmlElement).getID(), (String) criteria ); } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebLink) htmlElement).getName(), (String) criteria ); } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebTable) htmlElement).getSummary(), (String) criteria ); }; };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { return HttpUnitUtils.matches( ((WebTable) htmlElement).getID(), (String) criteria ); }; };
/** * Returns the first image found in the page with the specified src attribute. **/ public WebImage getImageWithSource( String source ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( source, images[i].getSource() )) return images[i]; } return null; }
/** * Returns the image found in the page with the specified name. **/ public WebImage getImageWithName( String name ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( name, images[i].getName() )) return images[i]; } return null; }
/** * Returns the first image found in the page with the specified alt attribute. **/ public WebImage getImageWithAltText( String altText ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( altText, images[i].getAltText() )) return images[i]; } return null; }
/** * Returns the first image found in the page with the specified src attribute. **/ public WebImage getImageWithSource( String source ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( source, images[i].getSource() )) return images[i]; } return null; }
/** * Returns the first image found in the page with the specified src attribute. **/ public WebImage getImageWithSource( String source ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( source, images[i].getSource() )) return images[i]; } return null; }
/** * Returns the first image found in the page with the specified alt attribute. **/ public WebImage getImageWithAltText( String altText ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( altText, images[i].getAltText() )) return images[i]; } return null; }
/** * Returns the image found in the page with the specified name. **/ public WebImage getImageWithName( String name ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( name, images[i].getName() )) return images[i]; } return null; }
/** * Returns the image found in the page with the specified name. **/ public WebImage getImageWithName( String name ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( name, images[i].getName() )) return images[i]; } return null; }
/** * Returns the first image found in the page with the specified alt attribute. **/ public WebImage getImageWithAltText( String altText ) { WebImage[] images = getImages(); for (int i = 0; i < images.length; i++) { if (HttpUnitUtils.matches( altText, images[i].getAltText() )) return images[i]; } return null; }
public boolean matchesCriteria( Object htmlElement, Object criteria ) { WebTable table = ((WebTable) htmlElement); for (int row = 0; row < table.getRowCount(); row++) { for (int col = 0; col < table.getColumnCount(); col++) { if (HttpUnitUtils.matches( table.getCellAsText( row, col ).trim(), (String) criteria)) return true; } } return false; } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { WebTable table = ((WebTable) htmlElement); for (int row = 0; row < table.getRowCount(); row++) { for (int col = 0; col < table.getColumnCount(); col++) { if (HttpUnitUtils.matches( table.getCellAsText( row, col ).trim(), (String) criteria)) return true; } } return false; } };
public boolean matchesCriteria( Object htmlElement, Object criteria ) { WebTable table = ((WebTable) htmlElement); for (int row = 0; row < table.getRowCount(); row++) { for (int col = 0; col < table.getColumnCount(); col++) { if (HttpUnitUtils.matches( table.getCellAsText( row, col ).trim(), (String) criteria)) return true; } } return false; } };