0

I facing an issue when I try to get battery info same as (CHARGING , DISCHARGING ...)

 public void Error_list(IOSDriver driver, IOSDriver driver2 ,IOSDriver driver3 )
    {
driver.getBatteryInfo();

    }

the error message :-

Exception in thread "main" java.lang.Error: Failed  :  java.lang.NullPointerException
  • Does this answer your question? [What is a NullPointerException, and how do I fix it?](https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – SiKing May 06 '21 at 16:57
  • Unfortunately no :( – walee1eed May 10 '21 at 10:58

0 Answers0