page-objects icon indicating copy to clipboard operation
page-objects copied to clipboard

I want add a GroupElement class

Open crisschan opened this issue 9 years ago • 2 comments

get a group elements,like:combox and so on.

crisschan avatar Sep 08 '16 02:09 crisschan

Hi there, I'm not entirely sure what this describes - can you give me an example? Better still, if you code it up in a pull request we can go through it in detail. Thanks!

eeaston avatar Sep 08 '16 12:09 eeaston

I have a page have some group elements. HTML like: <select class="search_input" id="level" name="level"> <option value="">select</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> </select> then,I can use GroupPageElement

merviewlevel=GroupPageElement(xpath='//*[@id="level"]/option')

if i want use merviewlevel by the element's text.exp merviewlevel[u'6'].click()

so i can drive the script by params.

I forked the code and pulled a request. And I have commit GroupPageElement class.

crisschan avatar Sep 21 '16 08:09 crisschan