Justin Ko
Justin Ko
@anilreddy this will be a problem in Watir. There is a pull request to Watir (https://github.com/watir/watir/pull/867) to address this.
@anilreddy , can you please provide code examples for when the error is being generated? It would help us track down where the problem is. Thanks.
This is complicated by the fact that the "tag" is actually used to determine the corresponding Watir method - see https://stackoverflow.com/a/59076811/1200545.
@mahula , is there a reason you want to purely use Selenium? As of version 2 of Page-Object, Watir is used under the covers - regardless of whether you initialize...
Verified with Page-Object v2.2.5 and Watir v6.16.5. From code inspection, would have existed since Page-Object v2.2.3. The problem appears to be in the pageobject_wrapper: ~~~~~~~~ def pageobject_wrapper(watir_object) type = element.type...
Example test case is below. HTML: ~~~~~~~~ a b c d ~~~~~~~~ Page-object code: ~~~~~~~~ class MyPage include PageObject indexed_property(:physician_panel,[ [:td, :name, id: 'authSubmitView-physicianPanel-%sPhysicianTab-NameField'], [:td, :npi, id: 'authSubmitView-physicianPanel-%sPhysicianTab-NPIField'] ]) end...
#populate_page_with will work with a (singular) page section, but not a collection of page sections. Note that this is the same as other inputs - eg there is no handling...
It wasn't obvious, but we actually already have support for this. We are injecting the "index" into the locator Strings. The "index" can be more complex - eg Array or...
Have you tried using autoload? I had been avoiding it since it was slated to be deprecated (for the past 7 years). However, Matz recently said they are keeping it...
A possible solution may be https://stackoverflow.com/a/14631604/1200545