taiko: Unable to input value in specified text field using toRightOf("Field name").Instead, inputed under incorrect(Non specified) text field

Scenario/Issue: I have two different fields such as ‘Brand Name’ and ‘Sub Brand Name’. I was trying to input under ‘Sub Brand Name’ hence i have provided the below code of line(Specified the attribute name) to input under Sub Brand Name

  • write(“test”, toRightOf(“Sub Brand Name”));

Note: I understand every-time it inputs into the focused element which is not the ideal behavior since user has clearly mentioned to input toRightOf(“field name”).Refer the screenshot attached.

Expected behavior

Should input under Sub Brand Name

Actual behavior

Inputed under Brand Name

Steps to reproduce

  1. Log into application
  2. write(“test”, toRightOf(“Sub Brand Name”));

Versions

Paste `node` and `taiko` versions here.

Inputed against non specified text field.docx

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

found that the textField api handles only input with type text, will be adding support for textarea and input text both in new api textBox and deprecate the existing textField