Aha, so you're just using `.element`, basically.
Since you don't really need any of the HTML stuff, perhaps watir-webdriver
could provide a way to load just the "core", i.e.:
```ruby
require 'watir-webdriver/core'
b = Watir::Browser.new(wd) # "core" browser, no HTML-speifici element methods
b.methods #=> [:close, :quit, :element, :elements]
require 'watir-webdriver' # adds all defaults (i.e. HTML)
b.methods #=> [:html, :a, :as, :abbr, :abbrs, :area, :areas, :article,
:articles, etc ...]
```
Then you could add your own replacements for `Watir::Container`, e.g.:
```ruby
require 'watir-webdriver/core'
Watir::Browser.extend Watir::AppiumContainer
Watir::Element.extend Watir::AppiumContainer
b = Watir::Browser.new(wd)
b.button(name: "Chicken Pics").click
b.window.textfield.when_present.send_keys("1")
b.button(name: "Calculate").click
... etc ...
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/238#issuecomment-33528549_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development