Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by gchandrasekaran82 on 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)

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

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

Post by gchandrasekaran82 on 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 | |

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

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

Post by Yure_ts on 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

Yure_ts

Posts : 2
Join date : 2011-02-22

Back to top Go down

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

Post by Sponsored content Today at 3:22 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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