Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

sendKeys on tel input fields not working in Chrome #1232

Closed
rtsio opened this issue Aug 25, 2014 · 3 comments
Closed

sendKeys on tel input fields not working in Chrome #1232

rtsio opened this issue Aug 25, 2014 · 3 comments

Comments

@rtsio
Copy link

rtsio commented Aug 25, 2014

element(by.id('phone')).sendKeys('5555'); (it does not matter what the input is, it can be a valid phone number) on an <input type="tel"> will not work in Chrome; the driver will focus the phone field, but not send any keys and then move on to the next thing. The expected behavior however works in Firefox. I haven't tested other drivers to see if it's just Chrome.

Running this on Sauce Labs.

@juliemr
Copy link
Member

juliemr commented Aug 26, 2014

Possibly related to #562

@hankduan
Copy link
Contributor

hankduan commented Oct 1, 2014

@rtsio Can I get more details on this?

I added

<span>{{testtel}}</span>
<input ng-model="testtel" type="tel"/>

into an angular app

The following test works for me

  it('test', function() {
    browser.get('index.html');
    var inp = element(by.model('testtel'));
    inp.sendKeys('12345');
    expect(element(by.binding('testtel')).getText()).toEqual('12345');
  });

@hankduan
Copy link
Contributor

hankduan commented Oct 7, 2014

Cannot reproduce (code shown above). Please reopen if you have a different test case that breaks.

@hankduan hankduan closed this as completed Oct 7, 2014
@hankduan hankduan removed their assignment Nov 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants