Project

General

Profile

« Previous | Next » 

Revision 9a908b9c

Added by Andreas Kohlbecker over 11 years ago

fixing page compare

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/pages/PortalPage.java
222 222
	 * Returns the current URL string from the {@link WebDriver}
223 223
	 * @return
224 224
	 */
225
	public String getURL() {
226
		return driver.getCurrentUrl();
225
	public URL getPageURL() {
226
		return pageUrl;
227 227
	}
228 228

  
229 229

  
......
238 238
	public boolean equals(Object obj) {
239 239
		if (PortalPage.class.isAssignableFrom(obj.getClass())) {
240 240
			PortalPage page = (PortalPage) obj;
241
			return this.getURL().equals(page.getURL());
241
			return this.getPageURL().toString().equals(page.getPageURL().toString());
242 242

  
243 243
		} else {
244 244
			return false;

Also available in: Unified diff