codepath / codepath/android_guides
Can not be able to insert text into second text box in an Alert dailog box in android appium
- Dominant language
- No language data
- Stars
- 28.3k
- Forks
- 6.2k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.