lean up selenium test
This commit is contained in:
parent
4a8ddf2e5a
commit
e7d70b1e26
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="selenium.base" href="http://wordpress27.local/" />
|
||||
<link rel="selenium.base" href="http://comicpress.local/" />
|
||||
<title>DailyImageWidgetTest</title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -99,22 +99,22 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>assertText</td>
|
||||
<td>//li[@id='hubblesite-daily-image']/h2</td>
|
||||
<td>//*[@id='hubblesite-daily-image']/h2</td>
|
||||
<td>HubbleSite Daily Image</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertElementPresent</td>
|
||||
<td>//li[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]</td>
|
||||
<td>//*[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>storeAttribute</td>
|
||||
<td>//li[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]@title</td>
|
||||
<td>//*[@id='hubblesite-daily-image']/a[contains(@href,'hubblesite.org/gallery/album')]@title</td>
|
||||
<td>title</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertElementPresent</td>
|
||||
<td>//li[@id='hubblesite-daily-image']//img[contains(@src,'imgsrc.hubblesite.org') and @alt="${title}"]</td>
|
||||
<td>//*[@id='hubblesite-daily-image']//img[contains(@src,'imgsrc.hubblesite.org') and @alt="${title}"]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -129,12 +129,12 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>//input[@name="hubblesite[title]"]</td>
|
||||
<td>//div[@id='widgets-right']//div[contains(@id,'hubblesite-daily-image')]//input[contains(@name, 'title')]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>//input[@name="hubblesite[credits]"]</td>
|
||||
<td>//div[@id='widgets-right']//div[contains(@id,'hubblesite-daily-image')]//input[contains(@name, 'credits')]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue