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

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
avatar
gchandrasekaran82
Regular Participant
Regular Participant
Posts : 33
Join date : 2011-02-16

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

Tue Mar 08, 2011 8:44 pm
storeTextPresent| text which you want to check |x
avatar
gopalakrishna
Posts : 8
Join date : 2010-12-14
Age : 34
Location : hyderabad

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

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 .

Sponsored content

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

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