I use a local webdriver. How do I run a test on LambdaTest automation testing?
Once you have imported the remote web driver class, you can create an object e.g. “driver” for remote web driver, choose “capabilities” as per your requirement and then use the remote web driver to connect with Lambdatest using “HUB URL”. You can use the following code to sync with LambdaTest:
RemoteWebDriver driver = new RemoteWebDriver(new URL(HUB URL),capabilities);
For more information, you can refer to our documentation: https://www.lambdatest.com/support/docs/java-with-selenium-running-java-automation-scripts-on-lambdatest-selenium-grid/