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

List locator: Create convenience methods for element list parent locator #76

Open
elhuang opened this issue Dec 6, 2017 · 1 comment

Comments

@elhuang
Copy link

elhuang commented Dec 6, 2017

Given a list locator defined as:

{
  "inputGroup": {
    "locator": "div.fielder",
    "type": "css",
    "Elements": {
      "text": "input.texty",
      "button": "input[type='button']"
    }
  }
}

I would like to interact with the parent element the same way I can interact with the child elements. This includes having all the same convenience methods.

Currently as a workaround, this locator is defined twice:

{
  "inputGroupParent": "div.fielder",
  "inputGroup": {
    "locator": "div.fielder",
    "type": "css",
    "Elements": {
      "text": "input.texty",
      "button": "input[type='button']"
    }
  }
}
@grawk
Copy link
Member

grawk commented Dec 6, 2017

Thanks. Will take a look at this as soon as I'm able to.

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