splinter
splinter copied to clipboard
Deprecating/Removing browser methods that can only search by 'name'
The following methods:
browser.fill
browser.type
browser.choose
browser.check
browser.uncheck
Have analogous methods at the Element level. However, the browser level versions can only search by name. Any attempt to make them more flexible would result in code of no less complexity than calling browser.find_by_x
. ie:
browser.check('my-checkbox', finder='id')
browser.find_by_id('my-checkbox').check()
Removing them would simplify everything by having only one way to interact with the API.