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

spring.spring-selenium-browserstack-common.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:ctx="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context.xsd">

  <description>Robot Selenium Keywords</description>

  <import resource="classpath:spring/spring-selenium-common.xml"/>
  <import resource="spring-browser-mob-proxy.xml"/>

  <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreUnresolvablePlaceholders" value="true"/>
    <property name="locations">
      <list>
        <value>classpath:jspringbot.properties</value>
      </list>
    </property>
  </bean>

  <bean id="desiredCapabilities" class="org.openqa.selenium.remote.DesiredCapabilities"/>

  <bean id="desiredCapabilitiesBean" class="com.jspringbot.selenium.extension.BrowserStackDesiredCapabilitiesBean">
    <constructor-arg ref="desiredCapabilities"/>
    <property name="browserName" value="${selenium.browser:none}"/>
    <property name="platform" value="${selenium.platform:none}"/>
    <property name="version" value="${selenium.browser.version:none}"/>

    <property name="browser" value="${selenium.browserstack.browser:none}"/>
    <property name="browserVersion" value="${selenium.browserstack.browserVersion:none}"/>
    <property name="os" value="${selenium.browserstack.os:none}"/>
    <property name="osVersion" value="${selenium.browserstack.os.version:none}"/>
    <property name="deviceName" value="${selenium.browserstack.device.name:none}"/>
    <property name="browserstackDebug" value="${selenium.browserstack.debug:none}"/>
    <property name="project" value="${selenium.browserstack.project:none}"/>
    <property name="build" value="${selenium.browserstack.build:none}"/>
  </bean>

  <bean class="org.jspringbot.keyword.selenium.WebDriverWaitBean">
    <constructor-arg ref="webdriver"/>
    <property name="implicitWaitInSeconds" value="${selenium.implicit.wait:30}"/>
    <property name="pageLoadWaitInSeconds" value="${selenium.page.wait:30}"/>
    <property name="scriptWaitInSeconds" value="${selenium.script.wait:30}"/>
    <property name="downloadTimeoutInSeconds" value="${selenium.download.timeout:10}"/>
  </bean>

  <bean id="helper" class="org.jspringbot.keyword.selenium.SeleniumHelper">
    <constructor-arg ref="webdriver"/>
    <property name="jqueryLink" value="${selenium.jquery.link:https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js}"/>
    <property name="implicitWaitInSeconds" value="${selenium.implicit.wait:30}"/>
    <property name="screenCaptureDir" value="${selenium.screenshot.folder}"/>
  </bean>

  <bean class="org.jspringbot.keyword.selenium.WebDriverInitializerBean">
    <constructor-arg ref="helper"/>
    <property name="maximize" value="${selenium.browser.maximize:true}"/>
  </bean>

  <bean id="extensionHelper" class="com.jspringbot.selenium.extension.SeleniumExtensionHelper">
    <constructor-arg ref="webdriver"/>
  </bean>


  <!-- Scan components -->
  <ctx:component-scan base-package="org.jspringbot.keyword.selenium.web, com.jspringbot.selenium.extension.keyword"/>
  <ctx:annotation-config/>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy