The Wayback Machine - https://web.archive.org/web/20201111034216/https://github.com/codepath/android_guides/issues/375
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sushmitha-mk opened this issue Oct 10, 2019 · 0 comments

Comments

@sushmitha-mk
Copy link

@sushmitha-mk sushmitha-mk commented Oct 10, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.