Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

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


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