Menu

TheSeleniumIdeExtension

Mark

Selenium IDE

Selenium IDE Extensions

Usage Examples

  • The access token for these samples is "monkey"
    • web.access.tokens#monkey
    • For additional details see the Web "Access/Security" section GettingStarted

Groovy Service Access

  • Execute Groovy Class Selenium Commands

    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || executeGroovyClass || {{{HelloClass.groovy}}} || World 01 ||
    || assertLastExecuteGroovyClassResult || Hello World 01! || ||
    
  • Execute Groovy Script Selenium Commands

    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || executeGroovyClass || {{{HelloScript.groovy}}} || World 01 ||
    || assertLastExecuteGroovyScriptResult || Hello World 01! || ||
    

Java Service Access

  • Execute Java Service Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || executeJava || java.lang.System.getProperty || java.vendor.url ||
    || assertLastExecuteJavaResult || {{{http://java.sun.com/}}} || ||
    

Process Access

  • Execute Process Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || executeProcess || echo Hello World || ||
    || assertLastExecuteProcessResult || Hello World || ||
    

Sql Access

  • Execute Sql Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || executeSql || select* from customers where rownum # 1 || ||
    || assertNotSqlQueryValue || 0:customer_id || ||
    || storeSqlQueryValue || 0:customer_id || customer_id ||
    || echo || ${customer_id} || ||
    || assertNotStoredVariable || customer_id || ||
    || verifyEval || {{{storedVars['customer_id'] > 0}}} || true ||
    

Http Parameter Storage and Retrieval

  • Store, Retrieve and Clear Http Web Parameter Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || clearHttpParameters || || ||
    || retrieveHttpParameters || || ||
    || assertLastRetrieveHttpParametersResult || || ||
    || storeHttpParameters || parameterOne#valueOne || ||
    || retrieveHttpParameters || || ||
    || assertNotLastRetrieveHttpParametersResult || || ||
    || retrieveHttpParameters || parameterOne || ||
    || assertEval || {{{storedParameters['parameterOne']}}} || valueOne ||
    

Property Retrieval

  • Fetch Property Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || fetchPropertiesFromFile || default.properties || .* ||
    || assertStoredVariable|| key1 || value1 ||
    || assertEval || {{{storedVars['key1']}}} || value1 ||
    || echo || ${key1} || ||
    || store || ${key1}0 || key10 ||
    || echo || ${key10} || ||
    || assertEval|| {{{storedVars['key10']}}} || value10 ||
    

Environmental Variable Retrieval

  • Fetch Property Selenium Commands
    || Command || Target || Value ||
    || setWzzBridgeBaseUrl || http://localhost:8080/wzz-bridge-core/monkey/ || ||
    || fetchEnvironmentVariables || .* || ||
    || assertStoredVariable|| JAVA_HOME || /usr/lib/jvm/java ||
    || assertEval || {{{storedVars['JAVA_HOME']}}} || /usr/lib/jvm/java ||
    || echo || ${JAVA_HOME} || ||
    || store || ${JAVA_HOME}0 || JAVA_HOME0 ||
    || echo || ${JAVA_HOME0} || ||
    || assertEval|| {{{storedVars['JAVA_HOME0']}}} || /usr/lib/jvm/java0 ||
    

Resource Retrieval

  • Retrieve a Resource Selenium Commands
|| Command || Target || Value ||
|| ||  || ||

No Selenium Hook. Only available via a url call. For instance;

http://localhost:8080/wzz-bridge-core/monkey/resources/app/selenium/extensions/wzz-bridge-extensions.js.version


Related

Wiki: GettingStarted
Wiki: ProjectHome

MongoDB Logo MongoDB