While automating login process with appium the password and username are entred in the same field of username

前端 未结 3 686
南笙
南笙 2021-01-16 20:51

Although the test is clear and simple i\'m always facing the same problem while tring to send keys (username; password) the password field is written in place of username !

3条回答
  •  梦谈多话
    2021-01-16 21:14

    This is strange issue. But Here is the solution for this.

    public void hideKeyBoard()
    {
        try{driver.hideKeyboard();}
        catch(Exception e){}
    }
    

    Use above method to hide keyboard

        driver.findElement(By.id("input_email")).click();
    
        driver.getKeyboard().sendKeys("e@e.emma.com");
    
        hideKeyboard();
    
        driver.findElement(By.id("input_password")).click();
    
        hideKeyboard();
    
        driver.getKeyboard().sendKeys("00000000");
    

    Hope this helps :)

提交回复
热议问题