All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.magentys.cinnamon.webdriver.remote.Saucelabs.scala Maven / Gradle / Ivy

package io.magentys.cinnamon.webdriver.remote

import com.typesafe.config.Config
import org.openqa.selenium.remote.DesiredCapabilities

class Saucelabs extends CinnamonRemote {

  override val name: String = "saucelabs"

  override def matchesHubUrl(url: String): Boolean = url.endsWith("saucelabs.com:80/wd/hub")

  override def capabilities(browserProfile: String, config: Config): DesiredCapabilities = {
    val mainRemoteCaps: DesiredCapabilities = super.capabilities(browserProfile, config)

    //TODO Here we can add names, build numbers etc - Dependency on the "handlers"
    val additionalRemoteCaps = new DesiredCapabilities
    //    additionalRemoteCaps.setCapability("name", "someName")
    //    additionalRemoteCaps.setCapability("build", "someBuild")

    mainRemoteCaps.merge(additionalRemoteCaps)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy