nodeURL = "http://localhost:8085"
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
current_webdriver = webdriver.Remote(
command_executor=nodeURL,
desired_capabilities=webdriver.DesiredCapabilities.CHROME,
options=options,
)
const NODE_URL = "http://localhost:8085";
let args = [
"--no-sandbox"
];
let chromeCapabilities = selenium.Capabilities.chrome()
.set('chromeOptions', {args});
let builder = new selenium.Builder()
.forBrowser('chrome')
.withCapabilities(chromeCapabilities);
let driver = await builder.usingServer(NODE_URL).build();
String nodeURL = "http://localhost:8085";
ChromeOptions options = new ChromeOptions();
options.addArguments("--no-sandbox");
options.addArguments("--disable-dev-shm-usage");
WebDriver driver = new RemoteWebDriver(new URL(nodeURL), options);
String nodeURL = "http://localhost:8085";
ChromeOptions optionsChrome = new ChromeOptions();
optionsChrome.AddArguments("--no-sandbox");
RemoteWebDriver driverChrome = new RemoteWebDriver(new Uri(nodeURL), optionsChrome);
<dependency>
<groupId>com.epam.healenium</groupId>
<artifactId>healenium-web</artifactId>
<version>3.2.5</version>
</dependency>
dependencies {
compile group: 'com.epam.healenium', name: 'healenium-web', version: '3.2.5'
}
recovery-tries = 1
score-cap = 0.5
heal-enabled = true
hlm.server.url = http://localhost:7878
hlm.imitator.url = http://localhost:8000
your_project
|__db
|__sql
|__init.sql
docker-compose.yaml
<plugin>
<groupId>com.epam.healenium</groupId>
<artifactId>hlm-report-mvn</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>hlmReport</id>
<phase>compile</phase>
<goals>
<goal>initReport</goal>
</goals>
</execution>
<execution>
<id>hlmReportB</id>
<phase>test</phase>
<goals>
<goal>buildReport</goal>
</goals>
</execution>
</executions>
</plugin>
java -jar hlm-backend.jar --SPRING_POSTGRES_DB=healenium --SPRING_POSTGRES_SCHEMA=healenium --SPRING_POSTGRES_USER=healenium_user --SPRING_POSTGRES_PASSWORD=YDk2nmNs4s9aCP6K
your-project-name
|__infra
|__db
|__sql
|__init.sql
|__browsers.json
|__docker-compose.yaml
|__docker-compose-selenium-v3.yaml
5. Create RemoteWebDriver Initialize your WebDriver as a RemoteWebDriver using port=8085, host=your_host. In example, host=localhost.
For Chrome:
6. Monitoring results of run. You can monitor tests running. To do this go to http://localhost:8080. Here you'll see current test session and window with logs.