Open brandizzi opened 9 years ago
Original comment by Adam Victor Brandizzi (Bitbucket: brandizzi, GitHub: brandizzi).
Other natural option is XPath
animator.fill(xpath="//form[@method='/']//input[@name='username']", value='value')
and a very interesting one can be to find by labels...
animator.fill(label='Enter your name here', value='Juju')
although this one is much more complicated.
Original report by Adam Victor Brandizzi (Bitbucket: brandizzi, GitHub: brandizzi).
The
fill()
method only receives selectors for now, but we really need to receive other queries - most notably,name
(for inputs) andclass
(for other elements):