Please help me out with an issue. I am getting this message “The method startActivity(Activity) from the type StartsActivity is deprecated”. I am trying to start the activity but it shows the method is deprecated. Could you please help me with an alternative? Below is the java-client version that I am using.
There can be 2 conditions that might be causing this issue.
driver that you are using might be not initialized with desired capabilities, i.e. it is showing a cross over the startActivity(), you might have used the AndroidDriver class but not initialized it.
I believe startActivity() method is now deprecated and soon will not be present in upcoming new java-client updates. I am also looking for a new implementation for this.