You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of widgets are accepting locator arg as first arg, e.g. Text(), Table(), Select(), etc.
Others (usually inputs) - as a third or forth, the first one for them is name. Few examples are TextInput(), Checkbox().
This brings some confusion, as sometimes i have to specify locator= and sometimes i don't:
If i knew locator is always third arg - i'd always define my widgets like Text(locator='//locator'). If i knew it's always first - i'd never have to specify locator= at all. Current state of things just provokes to make common mistake and introduces some extra time for debugging :)
The text was updated successfully, but these errors were encountered:
Some of widgets are accepting
locator
arg as first arg, e.g.Text()
,Table()
,Select()
, etc.Others (usually inputs) - as a third or forth, the first one for them is
name
. Few examples areTextInput()
,Checkbox()
.This brings some confusion, as sometimes i have to specify
locator=
and sometimes i don't:If i knew
locator
is always third arg - i'd always define my widgets likeText(locator='//locator')
. If i knew it's always first - i'd never have to specifylocator=
at all. Current state of things just provokes to make common mistake and introduces some extra time for debugging :)The text was updated successfully, but these errors were encountered: