How to set device mode using CDP in Java-TestNG automation test on LambdaTest?

Can I set device mode using CDP in Java-TestNG automation test?

Hi Richard,

If you want to set device mode using CDP in Java-TestNG automation test on LambdaTest, you can refer to sample GitHub test repo: