avatar
Untitled

Guest 90 10th Dec, 2019

MARKUP 1.34 KB
                                           
                         import java.io.File;
import java.util.Random;
import org.openqa.selenium.support.ui.*;
import java.util.Set;
import java.util.Iterator;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.*;
import java.util.HashMap;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.WebDriverWait;

String driverPath = "C:/Users/Mihai Croitoru/Desktop/Projects/BERD/chromedriver.exe";
System.setProperty('webdriver.chrome.driver', driverPath);
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--disable-gpu");
chromeOptions.addArguments("--no-sandbox");
WebDriver driver = new ChromeDriver(chromeOptions);

String ga = vars.get("ga");
log.info(ga)
//String gid = vars.get(gid)
//String gat = vars.get(gat)
driver.manage().addCookie(ga);
//driver.manage().addCookie(gid);
//driver.manage().addCookie(gat);

driver.get("https://monarch.dev.az.ebrd.com/spa-app/my-monarch/dashboard");
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes