0

I have following input

<input type="text" class="input-small note-editable"/>

How can i get access to that input to send keys? So far i was trying this:

this.inputForm = element(by.css('.input-small .note-editable'));

and

this.inputForm = element(by.css('.input-small'));
this.inputForm2 = this.inputForm.element(by.css('.note-editable'));

But it doesn't work, any advice?

Pulkownik
  • 530
  • 1
  • 6
  • 21

1 Answers1

2

You need a selector for both classes, not subsequent elements, so try:

this.inputForm = element(by.css('.input-small.note-editable'));

See CSS Selector that applies to elements with two classes for more examples / discussion

Community
  • 1
  • 1
declension
  • 4,110
  • 22
  • 25