man-group/page-objects

I want add a GroupElement class

crisschan opened this issue · 2 comments

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

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!

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.