Create Docker Image - Linux OS with java & selenium project
Budget: £20 – £250 GBP
Hello all. I would like someone who is experienced in creating docker images to create me a docker image that is running a maven project with selenium installed. It will also need the relevant decencies installed to scape a website, such as WebDriver and ChromeDriver. I will need to be able to run the project via linux command line. The source code can be the following example:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeleniumScraper {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.example.com");
WebElement element = driver.findElement(By.id("example-id"));
String text = element.getText();
System.out.println("Scraped Text: " + text);
driver.quit();
}
}
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeleniumScraper {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.example.com");
WebElement element = driver.findElement(By.id("example-id"));
String text = element.getText();
System.out.println("Scraped Text: " + text);
driver.quit();
}
}
Related categories:
Business, Accounting, Human Resources & Legal
Linux
Software Architecture
Docker