Setting up Gitpod for Selenium

Beginner here, want to get setup with Gitpod in order to complete the certification path. I’m going through the Getting started guide from Gitpod, watched some YT videos but still can’t figure how to get started.

Ideally gitpod as a cloud IDE I should be able to setup selenium like in my physical machine and run the selenium tests from within gitpod is this correct ? if so can someone direct me how, help is greatly appreciated

Hey Damitha,

Setting Gitpod to share the certification code is quite easy.

Here’s the instruction and steps for the same: ( I have also created and attached a step-by-step guide to setup the Gitpod to make things easy for you) :slight_smile:

  1. Submit the assignment task via Gitpod and ensure you have the .gitpod.yml file configured on GitHub Repository. You can learn more about configuring your single-click Gitpod dev environment. ( by prefixing its URL with gitpod.io/# - no configuration necessary. This is great to review code or quickly browse an open-source project in a familiar environment where your favorite keyboard shortcuts are available.)
  2. Please ensure that you attach a detailed README.md file along with your GitHub repository. This should include the instructions to run the test on the Gitpod dev environment.
  3. Please ensure that it is a Private Repository shared with ‘LambdaTest-Certifications’ or admin@lambdatestcertifications.com. Once done, this is what a typical repo would look like:

image.png

  1. To help you create/configure the .gitpod.yml file, we have created a quick step-by-step guide for you to set up the GitHub: Creating GitPod - Google Docs.

  2. Also, to run the test on LambdaTest Cloud Selenium Grid in parallel, you need to set the desired capabilities (OS/Browser configuration) using the LambdaTest Desired Capabilities Generator along with the corresponding username and access key, which can be collected by logging into your LambdaTest Profile Section.

  3. It is mandatory for the Certification participants to run the final code on the LambdaTest platform and share the code over the GitHub Repo along with the TestIDs.

TestID.JPG

Hope it helps!

1 Like

Dear @shahzebh, thank you very much for reply. :heart_eyes:

As a beginner to test automatiion and to Lamda, could you help me clear my understanding,

Gitpod is used here to code and share the developed code only is it ? Can’t I use gitpod to run tests like in Eclipse or Intellij ?

P.S Images attached to your this reply seems not loading and #6. Copy this code : is also empty in the Google doc.

Hey Damitha,

You can use Gitpod to share the developed code. However, you can use any IDE of your choice to run the code.

I have shared an email from admin@lambdatestcertifications.com with the docs again.

Dear Shahzebh,

Thank you very much for the document shared. However I ran into the below error when try to run the tests in Gitpod.

io.github.bonigarcia.wdm.config.WebDriverManagerException: There was an error creating WebDriver object for Firefox at io.github.bonigarcia.wdm.WebDriverManager.instantiateDriver(WebDriverManager.java:1775) at io.github.bonigarcia.wdm.WebDriverManager.create(WebDriverManager.java:425) at LTPlayGroundTest.validateCheckBoxStatus(LTPlayGroundTest.java:17) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) Caused by: java.lang.reflect.InvocationTargetException at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at io.github.bonigarcia.wdm.webdriver.WebDriverCreator.createLocalWebDriver(WebDriverCreator.java:64) at io.github.bonigarcia.wdm.WebDriverManager.createLocalWebDriver(We

This is the repo : GitHub - Dcode78/FirstSeleniumMavenProject at Mywork

Any ideas ?

Regards, Damitha.

Hi there, greetings.

From your project, it looks like you are trying to run the LTPlayGroundTest file using the testngSuite.xml file instead of the LTPlayGroundTestinSeleniumGrid file which is actually the file that runs the test on LambdaTest. The LTPlayGroundTest looks to be running on a local driver.

Kindly check and let us know if the issue still persists or if you have any follow-up questions.

Dear Abidk,

Thank you for pitching in and help. I didn’t advance into the stage of running the test on LambdaTest at least yet. All this time what I wanted to do is to run this repo on locally opened gitpod (like i would in my local pc with installed VSCode). To do that what needs to be done could you guide me please ?

Regards, Damitha.