sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
822 stars 105 forks source link

Connection to existing Appium server #198

Open RudolfVonKrugstein opened 4 years ago

RudolfVonKrugstein commented 4 years ago

I would like to connect to an existing appium server, because it runs on a different machine and cannot be started from the machine where the agouti tests are running.

As fas as I understand, the appium WebDriver is specified by a command and an URL (see appium/webdriver.go line 16-18):

        url := "http://{{.Address}}/wd/hub"
    command := []string{"appium", "-p", "{{.Port}}", "--log","/tmp/appium.log"}
    agoutiWebDriver := agouti.NewWebDriver(url, command, newOptions.agoutiOptions...)

If I have an running appium server, I could just supply an empty command. But I cannot change the port of the appium server. Also not its address.

Can I somehow create a WebDriver with a fixed port?

RudolfVonKrugstein commented 4 years ago

Created a pull request for this: https://github.com/sclevine/agouti/pull/201