selenium-chromedriver

org.openqa.selenium.json.JsonOutput.write(Ljava/lang/Object;Ljava/lang/reflect/Type;) due to JsonException: Attempting to close incomplete json stream

て烟熏妆下的殇ゞ 提交于 2020-01-28 11:22:10
问题 I am getting the above Json exception after I updated my TestNG to 6.14.3 and Selenium to 3.13.0. I am using ChromeDriver() for my automation. Here's a brief idea about my code: @BeforeSuite: System.setProperty("webdriver.chrome.driver", "path to chrome driver"); @BeforeMethod: driver = new ChromeDriver(); @AfterMethod: driver.quit(); My previous Versions were 6.11.0 and 3.7.1 respectively for TestNG and Selenium. The exception is coming when the code tries to start a WebDriver session. The

Ubuntu: selenium.common.exceptions: session not created: This version of ChromeDriver only supports Chrome version 79

半世苍凉 提交于 2020-01-28 11:14:23
问题 I have a python script running on an EC2 instance (ubuntu) on AWS. It uses selenium. It was working perfectly for weeks, and then all of the sudden, today, it stopped working with the following error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 79 Here is my python script, which I'm running on ubuntu: #install dependencies from selenium import webdriver from selenium.webdriver.chrome.options

Chromedriver only supports characters in the BMP error while sending Emoji with ChromeDriver Chrome using Selenium Python to Tkinter's label() textbox

社会主义新天地 提交于 2020-01-28 11:13:46
问题 I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emojis, I get this error "Chromedriver only supports characters in the BMP". How can I include emojis? 回答1: This error message... selenium.common.exceptions.WebDriverException:

org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList; with Selenium 3.5.3 Chrome 76

随声附和 提交于 2020-01-28 10:56:32
问题 I'm writing Selenium Junit tests with IntelliJ. The tests run ok if I trigger from test directly. However, if I trigger tests from TestRunnerSuite with JunitCore, I encountered following weird error that I did not find a solution after researching on google. Similar questions on DriverService$builder, but not my error type. [main] ERROR sire.responseOrg.TestIncidents - java.lang.AbstractMethodError: org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common

Selenium doesn't open the specified URL and shows data:,

馋奶兔 提交于 2020-01-28 10:24:36
问题 I am trying to open the URL using selenium in chrome. I have chromedriver available with me. following is the code I want to execute. from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-infobars") driver = webdriver.Chrome(executable_path="./chromedriver", chrome_options=chrome_options) driver.get("https://google.com") The browser is opened successfully but it doesn't open the specified URL. The URL in the browser is data:, . Any

Selenium doesn't open the specified URL and shows data:,

隐身守侯 提交于 2020-01-28 10:22:30
问题 I am trying to open the URL using selenium in chrome. I have chromedriver available with me. following is the code I want to execute. from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-infobars") driver = webdriver.Chrome(executable_path="./chromedriver", chrome_options=chrome_options) driver.get("https://google.com") The browser is opened successfully but it doesn't open the specified URL. The URL in the browser is data:, . Any

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: No matching capabilities error with ChromeDriver Chrome Selenium [duplicate]

我只是一个虾纸丫 提交于 2020-01-26 04:31:05
问题 This question already has answers here : Selenium “Unable to find a matching set of capabilities” despite driver being in /usr/local/bin (7 answers) Closed 6 months ago . First, machine and package specs: I am running: ChromeDriver version 75.0.3770.140 Selenium: version '3.141.0' WSL (linux subsystem) of windows 10 I am trying to run a chromebrowser through selenium. I found: these commands, to use selenium through google chrome. I have a test directory, with only the chromedriver binary

exception while invoking the constructor autofac dependency error

南笙酒味 提交于 2020-01-25 11:14:04
问题 Message : Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ChromeDriver'. ---> unknown error: unrecognized Blink revision: 2ac50e7249fbd55e6f517a28131605c9fb9fe897 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64) (See inner exception for details.) ----> System.InvalidOperationException : unknown error: unrecognized Blink revision: 2ac50e7249fbd55e6f517a28131605c9fb9fe897 (Driver info: chromedriver

How to handle modal or Pop-up Boxes in Selenium Python

社会主义新天地 提交于 2020-01-25 09:00:45
问题 I'm using selenium python to test a resturant pos system. After click different category menus,there will be about 3 different kinds of pop-up(modal) windows pop out to allow custom to chose items.Different category will pop out different pop-up(modal) windows. The category menus code are: <div id="iopopsz" style="display: none"> <div style="display:flex"> ...code.. </div> </div> <div id="comboitemsz" class="copt" style="display: none;"> <div style="display: flex"> ...code.. </div> </div>

Selenium not wait to element to be clickable

十年热恋 提交于 2020-01-25 08:54:06
问题 Hey All I have an issue that I am trying to resolve for long time. The problem is that I want selenium to wait for element to be clickable, after a message displayed on screen. The element ID is: header-account The timeout I sent to method is:15500 I set the Implicit wait to: IMPLICIT_WAITE = 35; As you can see selenium not waits for a second This is my main: BasePage.waitInvisabilityOfElementByXpath("//div[@class='ant-notification ant-notification-topRight']"); System.out.println("\n\n