Items in the shopping cart : Automation Tools

Items in the shopping cart

Ranorex Spy, Recorder, and Studio.

Items in the shopping cart

Postby vdoddaguni » Thu Apr 14, 2011 11:45 pm

Hi,

Our web sites enable customers to view products and make purchases. Using Ranorex, I would like to view the items in the shopping cart. If there are more than zero items, I would like to log an error message to the report file.

How can we do this in Ranorex. Please advise.

Thanks
vdoddaguni
 
Posts: 11
Joined: Mon Apr 11, 2011 10:34 pm

Re: Items in the shopping cart

Postby Support Team » Fri Apr 15, 2011 12:17 am

Hello,

- record the action needed to get to the shopping cart.
- click on the element that contains the number of items
- stop recording
- in the action list "Convert to User Code" (context menu) the mouse click on the number
- in the user code you can now

if (Convert.ToInt32(repo.WebDocumentxxx.YouAdapterName.InnerText) > 0)
				Report.Error("your error message");


Regards,
Roland
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests