Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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