- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
How to use storetext and verify text? It is failing for me..
Fri Feb 18, 2011 1:09 am
Hi,
Is there any thing wrong on the below code...Please correct it if any problem... It is failing....If I post,
storeText
//div[3]
200410
storeText
//div[4]
200111
clickAndWait
_Continue1_button
storeText
//div[1]
Test SCB Account 11111111111
verifyText
//div[4]
${200410}
verifyText
//div[4]
${200111}
VerifyText
//div[1]
${Test SCB Account 11111111111}
Is there any thing wrong on the below code...Please correct it if any problem... It is failing....If I post,
- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
Re: How to use storetext and verify text? It is failing for me..
Fri Feb 18, 2011 1:49 am
Please use this log since html tag is not coming in the blog... Please see the error part.. suggest me how to do this?
- [info] Executing: |open | /matml-core/login.do?XMSISDN=919551277438&MATM-GUID=996b918cae705965e2 | |
- [info] Executing: |type | username | user12 |
- [info] Executing: |type | password | sundar |
- [info] Executing: |clickAndWait | _Continue1_button | |
- [info] Executing: |clickAndWait | link=Other Services | |
- [info] Executing: |clickAndWait | link=Request Duplicate Statement | |
- [info] Executing: |clickAndWait | link=Test SCB Account 11111111111 | |
- [info] Executing: |type | startDateAsString | 200410 |
- [info] Executing: |type | endDateAsString | 200111 |
- [info] Executing: |storeText | //div[3] | 200410 |
- [info] Executing: |storeText | //div[4] | 200111 |
- [info] Executing: |clickAndWait | _Continue1_button | |
- [info] Executing: |storeText | //div[1] | Test SCB Account 11111111111 |
- [info] Executing: |verifyText | //div[2] | Start Date: ${200410} |
- [error] Actual value 'Start Date: 200410' did not match 'Start Date: Start Date'
- [info] Executing: |verifyText | //div[3] | End Date: ${200111} |
- [error] Actual value 'End Date: 200111' did not match 'End Date: DDMMYY'
- [info] Executing: |clickAndWait | link=Confirm | |
- [info] Executing: |verifyText | //div/div[1] | ${Test SCB Account 11111111111} |
- [error] Actual value 'Test SCB Account 11111111111' did not match '${Test SCB Account 11111111111}'
- [info] Executing: |verifyTextPresent | Start Date: 200410 | |
- [info] Executing: |verifyTextPresent | End Date: 200111 | |
- Yure_ts
- Posts : 2
Join date : 2011-02-22
Re: How to use storetext and verify text? It is failing for me..
Tue Feb 22, 2011 4:37 pm
a)|storeText | //div[3] | 200410 |
maybe there you need "storeValue" command
b)storeText | //div[1] | Test SCB Account 11111111111 |
seems like it is not allowed to use spaces in stored variables
maybe there you need "storeValue" command
b)storeText | //div[1] | Test SCB Account 11111111111 |
seems like it is not allowed to use spaces in stored variables
Permissions in this forum:
You cannot reply to topics in this forum
|
|