Skip to content

Can not be able to insert text into second text box in an Alert dailog box in android appium #375

Open
@sushmitha-mk

Description

@sushmitha-mk

I am not able to insert text into number text box in appium I have tried earlier by id, xpath and other locators but it is not inserting the value into the second text box in an alert dailog box.

The code I am using is:

ele.click();
ele.sendKeys(ele, input);

This clears and again inserts text into the first text box, Not performing any action on the second text box

Other solutions I have tried is:

Actions builder = new Actions(driver);
Actions seriesOfActions = builder.moveToElement(ele).click().sendKeys(ele, input);
seriesOfActions.perform();

JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", ele);
js.executeScript("arguments[0].value='"+input+"';", ele);

What should I do in order to fix this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Can not be able to insert text into second text box in an Alert dailog box in android appium · Issue #375 · codepath/android_guides