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 verify the condition using verifytext and store the value in to variable either true or false.

View previous topic View next topic Go down

how to verify the condition using verifytext and store the value in to variable either true or false.

Post by gchandrasekaran82 on Tue Mar 08, 2011 5:41 pm

I have a application which contains 3 pages.

The navigation of the flow is
If it is a first login: Page A --> Page B --> Page C

For subsequent login: Page A --> Page C


Here my condition is I will check some of the text in Page B using verifyTextPresent. If yes, I will do some operation to go to Page C and then i will do my activities in Page C. If no, I will do the activity directly in Page C.

I need to verify the text by VerifyTextPresent and if exists i set a value true to any variable and then the second step i will variable is true or false and then i will proceed.


How to attain this? also if you have any other idea also would be fine for me...

Thanks in advance..
Chandra

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

Re: how to verify the condition using verifytext and store the value in to variable either true or false.

Post by gchandrasekaran82 on Tue Mar 08, 2011 8:44 pm

storeTextPresent| text which you want to check |x

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

Re: how to verify the condition using verifytext and store the value in to variable either true or false.

Post by gopalakrishna on Mon Mar 14, 2011 5:10 pm

stepkey2,verifytextpresent ,textin secondpage, ,,{false:stepkeypage3}
stepkey2,method,target,value,,,
stepkey3,method,target,value,,,

adding content to store that value also
Stepkey1,verifyTextPresent,aaaaa,,{True:stepkey2}{False:stepkey3}
Stepkey2,clickAndWait,link=gopal,,setDynamicData(variable1;True)
Stepkey3,clickAndWait,link=teju,,setDynamicData(variable2;False)



i think this may correct solution .


gopalakrishna

Posts : 8
Join date : 2010-12-14
Age : 28
Location : hyderabad

Back to top Go down

Re: how to verify the condition using verifytext and store the value in to variable either true or false.

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