Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
gchandrasekaran82
Regular Participant
Regular Participant
Posts : 33
Join date : 2011-02-16

How to use storetext and verify text? It is failing for me.. Empty 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}


Last edited by gchandrasekaran82 on Fri Feb 18, 2011 1:47 am; edited 1 time in total (Reason for editing : Tage is missed it is not coming)
avatar
gchandrasekaran82
Regular Participant
Regular Participant
Posts : 33
Join date : 2011-02-16

How to use storetext and verify text? It is failing for me.. Empty 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 | |
avatar
Yure_ts
Posts : 2
Join date : 2011-02-22

How to use storetext and verify text? It is failing for me.. Empty 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
Sponsored content

How to use storetext and verify text? It is failing for me.. Empty Re: How to use storetext and verify text? It is failing for me..

Back to top
Permissions in this forum:
You cannot reply to topics in this forum