jiuka.selenium.selenium_navigate (0.0.2) — module

Navigate in a selenium browser.

| "added in version" 0.0.1 of jiuka.selenium"

Authors: Marius Rieder (@Jiuka)

preview | supported by community

Install collection

Install with ansible-galaxy collection install jiuka.selenium:==0.0.2


Add to requirements.yml

  collections:
    - name: jiuka.selenium
      version: 0.0.2

Description

Navigate in a selenium browser.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Page
  selenium_navigate:
    get: https://www.ansible.com/
  register: selenium
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Go back
  selenium_navigate:
    back: true
    session: '{{ selenium.session }}'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Go Forward
  selenium_navigate:
    forward: true
    session: '{{ selenium.session }}'

Inputs

    
get:
    aliases:
    - url
    description: URL to load in the browser.
    type: str

back:
    description: Go back in the history.
    type: bool

close:
    description: Cloase the current session.
    type: bool

reload:
    description: Reload the current page.
    type: bool

forward:
    description: Go forward in the history.
    type: bool

session:
    description:
    - Session to try to reconnect to.
    - If not specified, the value of environment variable C(SELENIUM_SESSION) will be
      used instead.
    type: str

executor:
    description:
    - URL of the Selenium server.
    - If not specified, the value of environment variable C(SELENIUM_EXECUTOR) will be
      used instead.
    type: str

headless:
    description:
    - If the Browser should be headless.
    - C(FIREFOX) and C(CHROME) only.
    required: false
    type: bool

capabilities:
    description:
    - Name of the browser to use as capabilities.
    - If not specified, the value of environment variable C(SELENIUM_BROWSER) will be
      used instead.

Outputs

browser:
  description: Name of the Selenium browser used.
  returned: always
  type: str
executor:
  description: URL of the Selenium executor used
  returned: always
  type: str
session:
  description: Selenium session id.
  returned: always
  type: str
title:
  description: Title of the page after the click.
  returnd: success
  type: str
url:
  description: URL of the browser after the click.
  returned: success
  type: str