Page 1 of 1

Dealing with a shopping cart test scenario

PostPosted: Mon May 03, 2021 9:46 am
by HDempsey
Good morning.

I have a test scenario and I was wondering if eValid could accomplish it:

The shopping cart has two products, normal product and personalized product.

Against each normal product there is a "move to Wishlist" button and there is no "move to Wishlist" button for personalized product.

The test needs to validate the absence of the "move to Wishlist" button for the personalized product.

Any ideas on how eValid to can complete this task?

Thanks in advance.

Re: Dealing with a shopping cart test scenario

PostPosted: Tue May 04, 2021 10:04 am
by eValid
HDempsey wrote:Good morning.

I have a test scenario and I was wondering if eValid could accomplish it:

The shopping cart has two products, normal product and personalized product.

Against each normal product there is a "move to Wishlist" button and there is no "move to Wishlist" button for personalized product.

The test needs to validate the absence of the "move to Wishlist" button for the personalized product.

Any ideas on how eValid to can complete this task?

Thanks in advance.


Thanks for asking about this HDempsey.

The best solution is to use one of these commands:

IndexFindElement

IndexFindElementEx

as described here in this manual page:

http://e-valid.com/Products/Documentati ... event.html`

What you are looking for is the absence of a find in the search.

The way to detect that is to set sourceIndex to 0 and verify after the search has finished, that it is STILL 0.

It would have been changed to be the sourceIndex of the element where a match was found.`


-- eValid Support