Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want add a GroupElement class #5

Open
crisschan opened this issue Sep 8, 2016 · 2 comments
Open

I want add a GroupElement class #5

crisschan opened this issue Sep 8, 2016 · 2 comments

Comments

@crisschan
Copy link

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

@eeaston
Copy link
Collaborator

eeaston commented Sep 8, 2016

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!

@crisschan
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants