01-05-2010, 12:49 PM
I was trying to apply text checkpoint while recording and standard checkpoint after recording on a website, but my checkpoints did not work properly, My code snippet is given below:
Please help me out by correcting me.
Thanks
Geeta
Code:
[color=#800000]"SystemUtil.Run ("C:\Program Files\Internet Explorer\iexplore.exe")
[b]Browser("Psychology Press: Publisher").Page("Informa Plc Intranet").Sync
Browser("Psychology Press: Publisher").Navigate "http://usmia-psypressmain.crcpress.local/"
Browser("Psychology Press: Publisher").Page("Psychology Press: Publisher").Link("General Psychology").Click
'Inserted Text Checkpoint during recording on text -"General Psychology" - [GR]
Browser("Psychology Press: Publisher").Page("Psychology Press Search").Check CheckPoint("Psychology Press Search Subject General Psychology_2")
Browser("Psychology Press: Publisher").Page("Psychology Press Search").Image("In Search of Synergy in").Click
'Inserted Standard Checkpoint after recording on text -'"Add To Cart", but could not find in Test Results [GR]
Browser("Psychology Press: Publisher").Page("Page").Link("Add to cart").Check CheckPoint("Add to cart")
Browser("Psychology Press: Publisher").Page("Page").Link("Add to cart").Click
Browser("Psychology Press: Publisher").Close[/b][/color]
Please help me out by correcting me.
Thanks
Geeta