Skip to content
  • 我的账户
  • 简体中文
    • 英语
    • 乌克兰语
    • 葡萄牙语(巴西)
    • 法语
    • 越南语
  • 我的账户
  • 简体中文
    • 英语
    • 乌克兰语
    • 葡萄牙语(巴西)
    • 法语
    • 越南语
Incogniton
  • 下载Incogniton
  • 定价
  • 我的账户
  • 接触
    • 接触
    • API DOCS
    • 知识中心
  • 下载Incogniton
  • 定价
  • 我的账户
  • 接触
    • 接触
    • API DOCS
    • 知识中心
Try for FREE
  • 下载Incogniton
  • 定价
  • 我的账户
  • 接触
    • 接触
    • API DOCS
    • 知识中心
  • 下载Incogniton
  • 定价
  • 我的账户
  • 接触
    • 接触
    • API DOCS
    • 知识中心
Try for FREE

入门

9
  • 如何更改 Incogniton 应用程序的用户界面语言
  • 指南 – 丢失密码时该怎么办
  • 指南–“简介管理 “的布局
  • 指南 – 如何在 Incogniton 中设置双因素授权
  • 在本地或我们的加密云服务器中保存数据
  • 指南 – 如何在 Incogniton 中创建新的浏览器配置文件
  • 打开和关闭浏览器配置文件
  • 系统要求
  • 指南 – 账户注册

浏览器配置文件管理

14
  • 指南 – 如何使用 Incogniton 的 OCR 工具从图像中复制和粘贴文本
  • 指南 – 在浏览器窗口中设置配置文件名称
  • 如何更改浏览器配置文件的语言
  • 指南 – 如何备份本地保存的 Incogniton 数据
  • 指南 – 如何更改 Incogniton 配置文件的浏览器版本
  • 指南 – 如何在浏览器配置文件中启用摄像头/网络摄像头
  • 指南 – 如何在用户之间传输配置文件
  • 指南 – 如何恢复已删除的配置文件(垃圾箱)
  • 指南 – 如何使用 Incogniton 的书签管理工具
  • 指南 – 如何使用 Incogniton 扩展管理器
  • 指南 – 如何克隆 Incogniton 浏览器配置文件
  • 高级 – 不在浏览器配置文件的 URL 栏中显示配置文件名称
  • 指南 – 如何使用同步器并将重复的浏览器操作复制到其他配置文件中
  • 指南–如何使用Incogniton的标记系统为浏览器配置文件分配标记

故障排除

6
  • Metamask Extension 无法运行/病毒报告的解决方案
  • Facebook 广告管理器有一个白色块
  • 配置文件卡在“正在同步”
  • 浏览器突然关闭
  • cookie 收集器在按下启动键后显示错误
  • 如何修复缓慢的浏览器配置文件?

一般问题

10
  • Как я могу повысить или понизить свою подписку?
  • 常见问题(FAQ)
  • 如何在 Incogniton 中激活黑暗模式
  • 如果您在欧盟以外注册为企业,如何免征增值税?
  • 指南 – 如何更改付款方式/如何使用加密货币付款。
  • 如何升级或降级我的订阅?
  • 账户
  • 一般问题
  • 如何在 Incogniton 配置文件中添加自定义 Chrome 扩展程序
  • 如何禁用退出 Incogniton 时的确认功能

团队管理

6
  • 指南 – 如何使用 Incogniton 的团队管理功能
  • 指南 – 如何为团队成员功能添加额外的团队成员/用户?
  • 我应该为某个团队成员提供哪些管理权限?
  • 指南 – 如何为每个团队成员创建不同的访问级别/权限
  • 指南 – 如何允许团队成员用户访问某组配置文件
  • 通过私人活动会话锁防止重复打开会话

代理管理

7
  • 指南 – 如何通过Incogniton代理商店购买代理服务器
  • 指南 – 如何使用 Incogniton 的代理管理功能
  • 如何将代理详细信息复制并粘贴到 Incogniton 中
  • 指南 – 如何通过 FireFox 浏览器和 Foxyproxy 测试您的代理服务器
  • 代理验证/代理信息 – 主提供商和备用提供商
  • 代理连接问题
  • 指南 – 如何从Incogniton代理服务器商店更新代理服务器

通过应用程序接口/Selenium 实现自动化

2
  • Selenium Browser Automation
  • 指南 – 在 Incogniton 通过 IPHey 测试

对浏览器配置文件执行批量操作

2
  • Guide – How to bulk create browser profiles
  • 指南 – 如何在 Incogniton 中对浏览器配置文件执行批量操作

Cookie 管理

2
  • 指南 – 如何将 Netscape cookies 转换为 JSON 格式以及将 JSON 格式转换为纯基本格式
  • 指南 – 如何使用 Cookie 收集器
View Categories
  • Home
  • Docs
  • 通过应用程序接口/Selenium 实现自动化
  • Selenium Browser Automation

Selenium Browser Automation

1 min read

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. Next to this we also support Puppeteer automation.

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

 

Requirements

  • Java 8 (https://www.java.com/en/download/ie_manual.jsp)
  • Latest selenium package for python

Python example

from selenium import webdriver
from ast import literal_eval
import requests

incogniton_profile_id = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
incogniton_url = 'http://127.0.0.1:35000/automation/launch/python/'+incogniton_profile_id

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

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

driver.get("https://www.incogniton.com")

Python example with POST

from selenium import webdriver
from selenium import webdriver
from ast import literal_eval
import requests

incogniton_profile_id = 'fc68c71d-4e3e-43ec-9cf6-2541d7cbe6ae'

try:
	stop_url = 'http://127.0.0.1:35000/profile/stop/'+incogniton_profile_id
	resp = requests.get(stop_url)
except:
	print("Failed to stop")

incogniton_url = 'http://127.0.0.1:35000/automation/launch/python/'


data = {"profileID": incogniton_profile_id ,"customArgs": "--disable-notifications"}
resp = requests.post(incogniton_url,data)
print(resp.json())

incomingJson = resp.json()
python_dict = literal_eval(incomingJson['dataDict'])
incomingUrl = incomingJson['url']
driver = webdriver.Remote(
			command_executor = incomingUrl,options=webdriver.ChromeOptions())

driver.get("https://www.incogniton.com")

Puppeteer with Incogniton

NodeJS example

const puppeteer = require('puppeteer')
var request = require("request")
var incognitonProfileID = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx';
var url = "http://localhost:35000/automation/launch/puppeteer/" + incognitonProfileID;

function sleepFor(sleepDuration) {
  var now = new Date().getTime();
  while (new Date().getTime() < now + sleepDuration) {}
}

function actions(body) {
  sleepFor(3000); //Some time for the browser to actually start.

  const screenshot = 'screenshot.png'
  try {
    (async () => {
      const browserURL = body.puppeteerUrl;
      const browser = await puppeteer.connect({
        browserURL
      });
      const page = await browser.newPage()
      await page.goto('https://hotmail.com')
      await page.screenshot({
        path: screenshot
      })
      await browser.close()
      console.log('See screenshot: ' + screenshot)
    })()
  } catch (err) {
    console.error(err)
  }
}

request({
  url: url,
  json: true,
  headers: {
    'Content-Type': 'application/json'
  }
}, function (error, response, body) {

  if (!error && response.statusCode === 200) {
    actions(body)

  }
})

If you have any questions after reading this article please do not hesitate to contact our support department.

更新 11 11 月, 2024

您的感觉是什么

  • Happy
  • 常规
  • Sad
分享这篇文章 :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
指南 – 在 Incogniton 通过 IPHey 测试

Powered by BetterDocs

Table of Contents
  • Supported languages
  • Selenium with Incogniton
  • Requirements
  • Python example
  • Python example with POST
  • Puppeteer with Incogniton
  • NodeJS example

快速访问

  • 免费试用!
  • 使用案例
  • 下载
  • 知识中心
  • 价格
  • 我的账户

我们的公司

  • 关于我们
  • 博客
  • 成为会员
  • 更新日志
  • 代理集成
  • 接触

热门博客

  • 20 Best Proxy Server Services in 2024
  • Browser Fingerprinting: A Complete Guide
  • How to Manage Multiple Instagram Accounts
  • Top 10 ways to Make Money Online
  • Managing multiple Facebook Ad accounts
Facebook Youtube Telegram Envelope
电子邮件和 Telegram 支持

我们位于荷兰阿姆斯特丹,办公时间(CET)内可通过 Telegram 提供服务。

© 2024 Incogniton / WorkingGreen BV. All Rights Reserved.

隐私
条款与条件