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
autorob
Posts : 1
Join date : 2017-03-27

Joining arguments o locate a page object Empty Joining arguments o locate a page object

Mon Mar 27, 2017 9:39 pm
Code:
1 row for a product (1 selected) in a shopping cart is identified by the data below (the row has 2 fields - product and Quanitity)

<td class="productListing-data" valign="top" align="center">
<input name="cart_quantity[]" value="1" size="4" type="text">
<input name="products_id[]" value="767" type="hidden">
</td>


a second row for another product (2 selected) is identified by the data below

<td class="productListing-data" valign="top" align="center">
<input name="cart_quantity[]" value="2" size="4" type="text">
<input name="products_id[]" value="1271" type="hidden">
</td>

Hi. I'm new to working with Selenium IDE.

I'm currently automating some user journeys through an online sales portal. Once you've added 2 products to your basket and go to the checkout you see 2 rows on the UI

I want to be able to uniquely identify the 'Quantity' field for each row so I can check it's correct but this field has the same name on each row and doesn't seem to have a unique ID. Therefore it seems I need to link the quantity field to the associated product ID field for a unique identifier..........does anyone have any idea how I might do this?

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