Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Today at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce


Joining arguments o locate a page object

View previous topic View next topic Go down

Joining arguments o locate a page object

Post by autorob on Mon Mar 27, 2017 9:39 pm

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">

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">

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


Posts : 1
Join date : 2017-03-27

Back to top Go down

View previous topic View next topic Back to top

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