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

Support custom elements for the root of widgets

Open jkotests opened this issue 4 years ago • 0 comments

Registering a widget assumes that there there is a related Watir method for your desired element type. This works for standard element types, but fails custom element types - eg Angular.

This issue has come up at least 2 times:

  • https://stackoverflow.com/q/65852406/1200545
  • https://github.com/cheezy/page-object/issues/451#issue-259455501

The workaround was to create associated methods in Watir. I think the better solution is to be able to define required identifiers/locators (ie tag_name) for the widget.

jkotests avatar Jan 25 '21 18:01 jkotests