Skip to content

ClickAndFillInWithRetriesAsync fails with numeric inputs on Chrome (OSOE-1168) #628

@sarahelsaig

Description

@sarahelsaig

Problem

When using something like context.ClickAndFillInWithRetriesAsync(by, decimalValue.ToTechnicalString()) on an <input type="number"> element on Chrome, the driver goes haywire and spams the text resulting in a timeout exception. Example with desired input being 0.01:

ui-test-test-dump-.-Windows-X64-GitHub Actions 1001922741.zip

Image

Workaround

A not-very-pretty workaround for simpler inputs is to code something like this instead:

var element = context.Get(by);
element.Click();
element.Clear();
element.SendKeysWithLogging(decimalValue.ToTechnicalString());

After Fixed

Revert this commit in OrchardCore.Commerce.

Jira issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions