Question
Pegasystems Inc.
JP
Last activity: 10 Oct 2016 8:59 EDT
OpenSpan 7.1 How to automate item selection within a dynamic list of items on web page ?
I need to automate item selection in a list of items on a web page.
The item with matching "template name" should be selected.
The list of items are dynamically generated and each row of item is rendered as html <div> tag instead of <tr> tag inside a <table>.
Also, it is not predictable that how many items will be displayed on the screen.
The generated html code will look like below.
I need to automate item selection in a list of items on a web page.
The item with matching "template name" should be selected.
The list of items are dynamically generated and each row of item is rendered as html <div> tag instead of <tr> tag inside a <table>.
Also, it is not predictable that how many items will be displayed on the screen.
The generated html code will look like below.
<html>
<head>
<style>
div.template_cell{
width: 30%;
float: left;
margin-top: 1px;
margin-bottom: 1px;
margin-left: 1px;
margin-right: 1px;
background-color: #00FFFF;
}
div.template_cell_head{
background-color: #FF00FF;
}
div.template_row{
height: 30px;
}
</style>
</head>
<body>
<form>
<div id="templates">
<div class="template_row" id="template1">
<div class="template_cell template_cell_head"><span>template name</span></div>
<div class="template_cell template_cell_head"><input id="chk_all" type="checkbox"/></div>
</div>
<div class="template_row" id="template1">
<div class="template_cell"><span>template_name_1</span></div>
<div class="template_cell"><input id="chk1" type="checkbox"/></div>
</div>
<div class="template_row" id="template2">
<div class="template_cell"><span>template_name_2</span></div>
<div class="template_cell"><input id="chk2" type="checkbox"/></div>
</div>
<div class="template_row" id="template3">
<div class="template_cell"><span>template_name_3</span></div>
<div class="template_cell"><input id="chk3" type="checkbox"/></div>
</div>
</div>
</form>
</body>
</html>