1.I am using appium for mobile app testing and language as java.
2. I have given below coding to enter the text by using sendkeys.
3. After entering the text, I need to press the search button from keyboard.
4. For that I have used key code event to press the search button. But, search action doesn’t happens for me.
5. How to click an search button by using coordinates?
@Test
public static void test_demo() throws Exception {
WebElement element = driver.findElement(By.id(“mytextfield”));
element.sendKeys(“Chennai”);
Do you able to identify that search button in Inspector or UIAutomatorViewer (or) Is there any GO or DONE button displaying on Keyboard or not? Please let me know…!
I have manually done this testing by entering text using keyboard and then I have pressed the search icon(magnifier) button in the device keyboard. Its works fine. I am trying to automate this operation. But, I can able to press the other keys in keyboard using keycode events. But, search button is not working. I don’t find the reason for this, why its not working. Its sure, its a SEARCH button only.
@bhaskar, I have just checked with whether I can bale to access the other keyboard events via key code. I can able to enter the other text in my text box. But, I don’t find the reason for search event doesn’t works for me. When an search button click event occurs, it flicks inside the textbox itself.
Hi Bhaskar…
As you have mentioned I’m facing the problem regarding clicking the Go option and I have it displaying on the keyboard. Could you help me out?