How can I run test on LambdaTest via proxy in Selenium when using Maven?
Hey Charity,
In the URL, pass the credentials of the proxy instead of that of LT:
https://" + “ProxyUser” + “:” + “ProxyPassword” + hub
Pass LT creds in capability:
caps.setCapability(“user”, “<>”); caps.setCapability(“accessKey”, “<>”);
Add before driver creation:
System.setProperty(“webdriver.http.factory”, “apache”);
Run below test
mvn test -D suite=single.xml -Dhttp.proxyHost=<> -Dhttp.proxyPort=<>