<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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://localhost/" />
<title>ListAndDeleteConversation</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">ListAndDeleteConversation</td></tr>
</thead><tbody>
<tr>
	<td>setSpeed</td>
	<td>2000</td>
	<td></td>
</tr>
<!--Delete conversation-->
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='MenuView']/ul/li/a/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//ul[@id='ShortcutsMenu']/li/ul/li[3]/a/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=Conversation_subject</td>
	<td>New Conversation For Delete ${randomTitle}</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=span.z-label</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='MenuView']/ul/li[6]/a/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>New Conversation For Delete ${randomTitle}</td>
	<td></td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//div[@id='list-view']/table/tbody/tr</td>
	<td>conversationsNumber</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=td &gt; a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='ConversationDetailsView']/div/div/div/ul/li/a/span</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@id='yt0']/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmation</td>
	<td>Are you sure you want to delete this Conversation?</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='RecentlyViewedView']/ul/li/a/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>css=h2</td>
	<td>The record you are trying to access does not exist.</td>
</tr>
<!--**********-->
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='MenuView']/ul/li[6]/a/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Created</td>
	<td></td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//div[@id='list-view']/table/tbody/tr</td>
	<td>conversationsCreatedNumber</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=td &gt; a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Options</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=yt0</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmation</td>
	<td>Are you sure you want to delete this Conversation?</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Created</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>css=span.empty</td>
	<td>No results found.</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Participating In</td>
	<td></td>
</tr>
<tr>
	<td>verifyXpathCount</td>
	<td>//div[@id='list-view']/table/tbody/tr</td>
	<td>3</td>
</tr>
</tbody></table>
</body>
</html>
