Selenium Browser Automation

Browser automation is a feature which allows you to automate processes online. This can be as simple as a simple button click to complex automated login and registration systems.

The Incogniton browser automation uses the selenium webdriver.

Supported languages #

At the moment only python is supported. The current implementation requires some additional settings to be set in python before launching a profile. Other languages like Java are on the roadmap.

Selenium with Incogniton #

To communicate with the selenium integration of Incogniton, two ports can be set.
One is the general API port and the other one is the specific selenium hub port.
The default API port is 35000 and the default selenium port is 4444.
The port values can be changed with the following steps:

  • Go to C:\Users\%username%\incogniton
  • Open auth.json
  • Change seleniumPort and apiPort to the desired port numbers

Python example #

from selenium import webdriver
from ast import literal_eval
import requests

incogniton_profile_id = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
incogniton_url = ''+incogniton_profile_id

resp = requests.get(incogniton_url)
incomingJson = resp.json()

python_dict = literal_eval(incomingJson['dataDict'])
driver = webdriver.Remote(
			command_executor = incomingJson['url'],
			desired_capabilities = literal_eval(incomingJson['dataDict']) )


Powered by BetterDocs