From e7d70b1e26a71e362d9370b454da57c1a351523d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 21 Dec 2009 17:10:11 -0500 Subject: [PATCH] lean up selenium test --- test/DailyImageWidgetTest.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/DailyImageWidgetTest.html b/test/DailyImageWidgetTest.html index c74722d..bf53656 100644 --- a/test/DailyImageWidgetTest.html +++ b/test/DailyImageWidgetTest.html @@ -3,7 +3,7 @@ - + DailyImageWidgetTest @@ -99,22 +99,22 @@ assertText - //li[@id='hubblesite-daily-image']/h2 + //*[@id='hubblesite-daily-image']/h2 HubbleSite Daily Image assertElementPresent - //li[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')] + //*[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')] storeAttribute - //li[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]@title + //*[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]@title title assertElementPresent - //li[@id='hubblesite-daily-image']//img[contains(@src,'imgsrc.hubblesite.org') and @alt="${title}"] + //*[@id='hubblesite-daily-image']//img[contains(@src,'imgsrc.hubblesite.org') and @alt="${title}"] @@ -129,12 +129,12 @@ uncheck - //input[@name="hubblesite[title]"] + //div[@id='widgets-right']//div[contains(@id,'hubblesite-daily-image')]//input[contains(@name, 'title')] check - //input[@name="hubblesite[credits]"] + //div[@id='widgets-right']//div[contains(@id,'hubblesite-daily-image')]//input[contains(@name, 'credits')]