Chromeless: Using `press(13)` will incorrectly prompt the auto update setting page in Canary

Created on 11 Aug 2017  路  5Comments  路  Source: prisma-archive/chromeless

Example:

        .click('#search-button')
        .type('funny', 'input#search-input')
        .press(13)

The expected behaviour is to redirect to a search page since I try to trigger an enter event in the input box. However, a new tab is opened instead.

screen shot 2017-08-11 at 6 05 02 pm

API help wanted question

Most helpful comment

Has anyone found a fix for this? I'm still getting this with every key, not just enter!

All 5 comments

If you're using .press(13) after typing a field did you made sure to maintain .focus?
Just an idea, I personally haven't ran into that issue.

I had to solve that issue by using .type('\r') instead

https://github.com/sojungko

@sojungko Thanks. Using .type('\r') does work, but I guess it is only a workaround. So I will keep the issue open.

Any updates on this? I can replicate this on 1.3.0 for every keystroke, not just for 13.

Has anyone found a fix for this? I'm still getting this with every key, not just enter!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ylscsdb picture ylscsdb  路  6Comments

stevenvachon picture stevenvachon  路  4Comments

just-boris picture just-boris  路  5Comments

Corefinder89 picture Corefinder89  路  4Comments

mafshin picture mafshin  路  6Comments