Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: Re: How do I define a locator to get the attributes in an input element? - msg#00239
List: web.selenium.user
1.
Determines whether the specified input element is present or not.
isElementPresent(
"//INPUT[@id=MAIN_DETAILS_COMPANY_NAME_0][@class=nonmodifyable]" )
or
Determines whether class attribute of the specified input element equals
"nonmodifyable".
getAttribute( "id=MAIN_DETAILS_COMPANY_NAME_0@class" ) == ?nonmodifyable"
2.
Determines whether the specified input element is editable, ie hasn't been
disabled.
isEditable( "//INPUT[@id=MAIN_DETAILS_COMPANY_NAME_0]" )
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6287&messageID=17717#17717
---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-users-unsubscribe-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
selenium-users-help-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: TestRunner loses track of where its at
That will work. If there is a way to do that, please reply on how to go about
it.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6265&messageID=17715#17715
---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-users-unsubscribe-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
selenium-users-help-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
Next Message by Date:
click to view message preview
Re: How do I 'click' a span if the text within the span can change?
<tr>
<td>clickAndWait</td>
<td>//span[@text='IdeaGroupB']</td>
<td></td>
</tr>
Hope it can help you!
blogbin
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6218&messageID=17718#17718
---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-users-unsubscribe-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
selenium-users-help-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
Previous Message by Thread:
click to view message preview
How do I define a locator to get the attributes in an input element?
I am using Selenium version 0.6.0 with IE6.
Part of my web page contains 2 fields: A prompt and a non-modifyable field
containing a value (a comany name).
The 2 fields are generated by the following HTML:
<tr>
<td nowrap="nowrap" class="FieldPrompt">Company name</td>
<td><input style="width: 100%" readonly class="nonmodifyable" value="My Company
Corporation" name="MAIN_DETAILS_COMPANY_NAME_0"
id="MAIN_DETAILS_COMPANY_NAME_0"></td>
</tr>
I want to test 2 things:
1. How do I test the input field (id="MAIN_DETAILS_COMPANY_NAME_0") has the
attribute: class="nonmodifyable" ?
2. How do I test the input field (id="MAIN_DETAILS_COMPANY_NAME_0") has the
attribute: readonly ?
I've read the documentation, but cannot find a way of doing this.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6287&messageID=17695#17695
---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-users-unsubscribe-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
selenium-users-help-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
Next Message by Thread:
click to view message preview
Is there a Selenium Assertion that retrieves Values in a Select element?
I have the following select HTML element:
<select id="DROP_DOWN_LIST">
<option value="PR">Private</option>
<option value="PU">Public</option>
</select>
The following test passes when run:
assertSelectOptions | //select[@id='DROP_DOWN_LIST'] | Private,Public
Howeer, I also want to test that the only 2 values in this drop down list are
"PR" and "PU" - how do I do this?
I have read the documentation and cannot find a Selenium Assertion called
assertSelectValues, or a SeleniumAccessor called storeSelectValues. Does this
exist? If not, how do I go about filing a request for this?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6290&messageID=17701#17701
---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-users-unsubscribe-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
selenium-users-help-Ltt7FjPjUpcdnm+yROfE0A@xxxxxxxxxxxxxxxx