selenium-chromedriver

chrome doesn't maximize when running selenium testNG from jenkins

坚强是说给别人听的谎言 提交于 2021-01-28 06:09:43
问题 I am facing a problem with running selenium testNG test from jenkins , the problem is that i am doing a login to my application and checking some element visibility , when i run the test from the batch file directly i got a success because i'm setting my google chrome driver to maximize using: driver.manage().window().maximize(); but if the browser is minimized some elements are not visible (front-end requirements) , so when i run the test from jenkins the test failed because i think that the

Сhromedriver: how to add support of Chromium-based browsers

倾然丶 夕夏残阳落幕 提交于 2021-01-28 04:36:01
问题 What is required to add a browser to the list of available browsers for UI-automation frameworks/wrappers to successfully running of autotests through the appropriate browser? For example, I want to adding browser "Sputnik", which using Chromium core. 回答1: TL;DR: Use Selenium + Codeception (or any other chrome-supported framework), add to configuration a special enviroment for "non-valid" browser as Sputnik, wherein path to binary is equivalent to your chrome-binary. Recompile chromedriver

Сhromedriver: how to add support of Chromium-based browsers

蹲街弑〆低调 提交于 2021-01-28 04:25:44
问题 What is required to add a browser to the list of available browsers for UI-automation frameworks/wrappers to successfully running of autotests through the appropriate browser? For example, I want to adding browser "Sputnik", which using Chromium core. 回答1: TL;DR: Use Selenium + Codeception (or any other chrome-supported framework), add to configuration a special enviroment for "non-valid" browser as Sputnik, wherein path to binary is equivalent to your chrome-binary. Recompile chromedriver

Selenium Chrome gets detected

限于喜欢 提交于 2021-01-28 03:31:30
问题 I'm trying to make a bot for https://www.phonehouse.nl/verlengchecker . But when I use Chrome it gets detected. When I use Firefox it only opens the page and doesn't do anything. I tried it on Arch linux and Windows result is the same. from selenium import webdriver from time import sleep capabilities = { 'browserName': 'chrome', 'chromeOptions': { 'useAutomationExtension': False, 'forceDevToolsScreenshot': True, 'args': ['--start-maximized', '--disable-infobars'] } } driver = webdriver

Selenium Chrome gets detected

谁说胖子不能爱 提交于 2021-01-28 02:17:03
问题 I'm trying to make a bot for https://www.phonehouse.nl/verlengchecker . But when I use Chrome it gets detected. When I use Firefox it only opens the page and doesn't do anything. I tried it on Arch linux and Windows result is the same. from selenium import webdriver from time import sleep capabilities = { 'browserName': 'chrome', 'chromeOptions': { 'useAutomationExtension': False, 'forceDevToolsScreenshot': True, 'args': ['--start-maximized', '--disable-infobars'] } } driver = webdriver

How do you set network throttling in selenium using javascript?

喜你入骨 提交于 2021-01-27 23:41:21
问题 How do you set the network throttling settings in chrome using selenium and javascript 回答1: It did take me a bit of time to figure this out as well, but this seemed to work for me driver = await new Builder() .forBrowser(engine) .usingServer(testConfig.seleniumServer + 'wd/hub') .setChromeOptions(new chrome.Options()) //.headless() .build(); driver.setNetworkConditions({ offline: false, latency: 15, // Additional latency (ms). download_throughput: 50 * 1024, // Maximal aggregated download

Selenium: access denied

眉间皱痕 提交于 2021-01-27 19:00:31
问题 I am trying to scrape some data from LV website with Selenium and keep getting 'Access Denied' screen once 'sign in' button clicked. I feel like there is a protection against this because all seems to be working fine when I do the same manually. Oddly, I need to click 'sign in' button twice to be able to sign in manually. My code: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver

Selenium Chrome & Firefox WebDriver: Set HTTPS proxy in Python

↘锁芯ラ 提交于 2021-01-27 18:06:01
问题 I've done plenty of searching however there is a lot of confusing snippets out there that are very similar. I've attempted to use the DesiredCapabilities , ChromeOptions , Options and a series of arguments but nothing is working :( It fails to set a proxy. For example ( ChromeOptions ) chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--proxy=https://' + proxy_ip_and_port) chrome_options.add_argument('--proxy-auth=' + proxy_user_and_pass) chrome_options.add_argument('-

How to handle “Unable to receive message from renderer” in chrome driver?

半世苍凉 提交于 2021-01-27 16:04:26
问题 Test Environment: chrome=73.0.3683.103 chromedriver version: 73.0.3683.68 java.version: '1.8.0_151' os.name: 'Windows 7' I am getting following error: Unable to receive message from renderer Timed out receiving message from renderer: 19.997 Timed out receiving message from renderer:-0.004 Thank you in advance for any help you may be able to provide. 回答1: This error message... Unable to receive message from renderer Timed out receiving message from renderer: 19.997 Timed out receiving message

python selenium - takes a lot of time when it does not find elements

十年热恋 提交于 2021-01-27 13:12:16
问题 my code scans a lot of internet pages with chromedriver and searches for the same element in each page with "find_elements_by_xpath" Lines = driver.find_elements_by_xpath( '//*[@id="top"]/div[contains(@style, "display: block;")]/' 'div[contains(@style, "display: block;")]//tbody//a[contains(@title, "Line")]') When it finds, one or multiple, it works fast and good. But, when the XPath doesn't exist it runs for 6-7 seconds and then moves on. Can I limit the search for 1 second, And if it doesn