← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #667504]: Unable to run the Test on the build machine

 

Question #667504 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667504

Mehrunisa gave more information on the question:
import org.openqa.selenium.chrome.ChromeDriver as CD
import org.openqa.selenium.chrome.ChromeOptions as CO
import org.openqa.selenium.chrome.ChromeDriverService as CS
import org.openqa.selenium.remote.DesiredCapabilities as DC
import org.openqa.selenium.By as By
import org.openqa.selenium.interactions
#import org.openqa.selenium.support.ui.Select as Select
import org.openqa.selenium.support
import org.openqa.selenium.WebDriver as WD
import org.openqa.selenium.WebElement
import java.util.concurrent.TimeUnit as TimeUnit
import java.util.Arrays as Arrays
import java.lang
import java.lang.System as System

options = CO()
capability=DC.chrome()
System.setProperty('webdriver.chrome.driver', 'C:\\Sikuli\\chromedriver.exe')
capability.setCapability('chrome.switches', Arrays.asList('–disable-extensions'))
capability.setCapability('chrome.binary', 'C:/Users/user_name/AppData/Local/Google/Chrome/Application/chrome.exe')
options.addArguments('user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data/Default')
options.addArguments('--auth-server-whitelist=*wfmrc1*')
driver = CD(capability)
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS)
driver.get("http://login:password@xxxxxxxxxx/Login.aspx";)
wait(60)
ParentFrame=(driver.findElement(By.ByXPath("//*[@id='ContainerControl']")))
SwitchtoParentFrame=driver.switchTo().frame(ParentFrame)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.