Open Jacobvu84 opened 5 years ago
<input name='username' ...>
If you have a web element that contains id or name attribute so you can use this attribute as a WebElement object
id
name
WebElement
Normally,
@FindBy(id='username') WebElement userNamField; userNamField.SendKeys("jacob.vu");
For Serenity BDD Test Framework. That is simple
WebElementFacade username; username.type("jacob.vu");
In case,
<input name='user-name' ...>
We are not able to use user-name as WebElement because the value of name attribute is not like a variable in programming language
user-name
If you have a web element that contains
id
orname
attribute so you can use this attribute as aWebElement
objectNormally,
For Serenity BDD Test Framework. That is simple