[prev in list] [next in list] [prev in thread] [next in thread]
List: selenium-commits
Subject: [Selenium-commits] [614] trunk/code/doc/seleniumReference.txt: Some
From: mdub () codehaus ! org
Date: 2005-08-24 12:39:59
Message-ID: 20050824123959.12374.qmail () codehaus ! org
[Download RAW message or body]
[Attachment #2 (text/html)]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><style type="text/css"><!--
body {background:#ffffff;font-family:Verdana,Helvetica,Arial,sans-serif;}
h3 {margin:15px 0;padding:0;line-height:0;}
#msg {margin: 0 0 2em 0;}
#msg dl, #msg ul, #msg pre {padding:1em;border:1px dashed black;margin: 10px 0 30px \
0;} #msg dl {background:#ccccff;}
#msg pre {background:#ffffcc;}
#msg ul {background:#cc99ff;list-style:none;}
#msg dt {font-weight:bold;float:left;width: 6em;}
#msg dt:after { content:':';}
#patch h4 {padding: 0 \
10px;line-height:1.5em;margin:0;background:#ccffff;border-bottom:1px solid \
black;margin:0 0 10px 0;} #patch .propset h4, #patch .binary h4 {margin: 0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {background:#eeeeee;padding: 0 0 10px 0;}
#patch .propset .diff, #patch .binary .diff {padding: 10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary \
{border:1px solid black;margin:10px 0;} #patch .add {background:#ddffdd;}
#patch .rem {background:#ffdddd;}
#patch .lines, .info {color:#888888;background:#ffffff;}
--></style>
<title>[614] trunk/code/doc/seleniumReference.txt: Some documentation for \
assertPrompt.</title> </head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>614</dd>
<dt>Author</dt> <dd>mdub</dd>
<dt>Date</dt> <dd>2005-08-24 08:39:58 -0400 (Wed, 24 Aug 2005)</dd>
</dl>
<h3>Log Message</h3>
<pre>Some documentation for assertPrompt.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkcodedocseleniumReferencetxt">trunk/code/doc/seleniumReference.txt</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkcodedocseleniumReferencetxt"></a>
<div class="modfile"><h4>Modified: trunk/code/doc/seleniumReference.txt (613 => \
614)</h4> <pre class="diff">
<span class="info">--- trunk/code/doc/seleniumReference.txt 2005-08-24 12:39:36 UTC \
(rev 613)
+++ trunk/code/doc/seleniumReference.txt 2005-08-24 12:39:58 UTC (rev 614)
</span><span class="lines">@@ -277,6 +277,26 @@
</span><span class="cx"> verifyAttribute input2@\ class \
${classOfInput1} =============== ============== ====================
</span><span class="add">+ **chooseCancelOnNextConfirmation**\ ()
+
+ Instructs Selenium to click **Cancel** on the next javascript confirmation \
dialog to be raised. By default, the confirm function will return true, having the \
same effect as manually clicking OK. After running this command, the next \
confirmation will behave as if the user had clicked Cancel. +
+ **examples:**
+
+ ============================== ===== =====
+ chooseCancelOnNextConfirmation
+ ============================== ===== =====
+
+ **answerOnNextPrompt**\ ( *answerString* )
+
+ Instructs Selenium to return the specified *answerString* in response to the \
next prompt. +
+ **examples:**
+
+ ========================== ========= =====
+ answerOnNextPrompt Kangaroo
+ ========================== ========= =====
+
</span><span class="cx"> ---------------
Selenium Checks
---------------
</span><span class="lines">@@ -469,7 +489,7 @@
</span><span class="cx">
Verifies that a javascript confirmation dialog with the specified message \
was generated. Like alerts, confirmations must be verified in the same order that \
they were generated.
</span><span class="rem">- By default, the confirm function will return true, \
having the same effect as manually clicking OK. This can be changed by prior \
execution of the **chooseCancelOnNextConfirmation** command (see below). If an \
confirmation is generated but you do not verify it, the next Selenium action will \
fail. </span><span class="add">+ By default, the confirm function will return \
true, having the same effect as manually clicking OK. This can be changed by prior \
execution of the **chooseCancelOnNextConfirmation** command (see above). If an \
confirmation is generated but you do not verify it, the next Selenium action will \
fail. </span><span class="cx">
NOTE: under Selenium, javascript confirmations will NOT pop up a visible \
dialog.
</span><span class="lines">@@ -482,15 +502,19 @@
</span><span class="cx"> verifyConfirmation Are you sure?
================== ==================== =====
</span><span class="rem">- **chooseCancelOnNextConfirmation**\ ()
</span><span class="add">+ **assertPrompt**\ ( *messagePattern* )
</span><span class="cx">
</span><span class="rem">- Instructs Selenium to click **Cancel** on the next \
javascript confirmation dialog to be raised. By default, the confirm function will \
return true, having the same effect as manually clicking OK. After running this \
command, the next confirmation will behave as if the user had clicked Cancel. \
</span><span class="add">+ Verifies that a javascript prompt dialog with the \
specified message was generated. Like alerts, prompts must be verified in the same \
order that they were generated. </span><span class="cx">
</span><span class="add">+ Successful handling of the prompt requires prior \
execution of the **answerOnNextPrompt** command (see above). If a prompt is \
generated but you do not verify it, the next Selenium action will fail. +
</span><span class="cx"> **examples:**
</span><span class="rem">- ============================== ===== =====
- chooseCancelOnNextConfirmation
- ============================== ===== =====
</span><span class="add">+ ================== \
============================= ===== + answerOnNextPrompt Joe
+ click id=delegate
+ verifyPrompt Delegate to who?
+ ================== ============================= =====
</span><span class="cx">
------------------------------------
Parameter construction and Variables
</span>
</pre>
</div>
</div>
</body>
</html>
_______________________________________________
Selenium-commits mailing list
Selenium-commits@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic