`
`How do I integrate Bright Data into a web browser automation tool? – Bright Data
`
`zproxy.lum-superproxy.io:22225
`
`const {Builder, By, Key, until} = require('selenium-webdriver');
`const proxy = require('selenium-webdriver/proxy');
`
`(async function example(){
` let driver = await new Builder().forBrowser('firefox').setProxy(proxy.manua
` http: 'zproxy.lum-superproxy.io:22225',
` https: 'zproxy.lum-superproxy.io:22225'
` })).build()
`
` try {
` await driver.get('http://lumtest.com/myip.json');
`
`
`
`
`
`SupportSupportSupport
`
`https://help.brightdata.com/hc/en-us/articles/4413213588369-How-do-I-integrate-Bright-Data-into-a-web-browser-automation-tool-
`
`1/3
`
`Major Data UAB v. Bright Data Ltd.
`IPR2022-00915, EX. 2060
`1 of 3
`
`Bright Data > Tools & Integrations > Integration
`How do I integrate Bright Data into a web
`browser automation tool?
`1 month ago · Updated
`Follow
`Integrating Bright Data into a web browser automation tool such as Selenium or Puppeteer can be done by
`route to Bright Data super proxy port which is
` and authenticate
`with your Bright Data Zone credentials.
`The username and password of the speci c Zone can be nd in the API examples.
`Watch Bright Data Browser Automation webinar
`Integrating Bright Data super proxy with Selenium:
` Sign in
`Search
`Articles in this section
`
`
`How do I integrate Bright Data into a web browser automation tool? – Bright Data
`8/2/22, 4:30 PM
` driver.switchTo().alert().sendKeys('lum-customer-USERNAME'+Key.TAB+'PAS
` driver.switchTo().alert().accept();
` } finally {
` await driver.quit();
` }
`})();
`
`const puppeteer = require('puppeteer');
`
`(async () => {
` const browser = await puppeteer.launch({
` headless: false,
` args: ['--proxy-server=zproxy.lum-superproxy.io:22225']
` });
` const page = await browser.newPage();
` await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb
` await page.authenticate({
` username: 'lum-customer-USERNAME',
` password: 'PASSWORD'
` });
` await page.goto('http://lumtest.com/myip.json');
` await page.screenshot({path: 'example.png'});
` await browser.close();
`})();
`
`setUserAgent
`
`https://help.brightdata.com/hc/en-us/articles/4413213588369-How-do-I-integrate-Bright-Data-into-a-web-browser-automation-tool-
`
`2/3
`
`
`
`
`
`SupportSupportSupport
`
`Major Data UAB v. Bright Data Ltd.
`IPR2022-00915, EX. 2060
`2 of 3
`
`NOTE: The latest FireFox version that supports the above code is 66.0.5. Newer versions
`support IP:PORT format, so using newer FireFox versions can be done through Proxy Manager
`con guration.
`Integrating Bright Data super proxy with Puppeteer:
`Watch video: connecting Puppeteer with Bright Data super proxy
`Note: Chromium user-agent include "HeadlessChrome" that need to be replaced as shown in the example
`above using
`.
`
`
`
`
`8/2/22, 4:30 PM
`
`How do I integrate Bright Data into a web browser automation tool? – Bright Data
`
`https://help.brightdata.com/hc/en-us/articles/4413213588369-How-do-I-integrate-Bright-Data-into-a-web-browser-automation-tool-
`
`3/3
`
`
`
`
`
`SupportSupportSupport
`
`Major Data UAB v. Bright Data Ltd.
`IPR2022-00915, EX. 2060
`3 of 3
`
`Was this article helpful?
`Yes
`
`No
`0 out of 0 found this helpful
`Have more questions? Submit a request
`Return to top
`Related articles
`Selenium Proxy Integration with Bright Data
`How do I integrate Bright Data as my proxy network?
`How can I use Proxy credentials type: http://host:port || IP:PORT ?
`How to integrate the Proxy Manager with Selenium?
`How do I con gure IP rotation when using Bright Data?
`Bright Data
`English (US)
`