selenium-webdriver

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

我是研究僧i 提交于 2020-07-31 03:53:05
问题 I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit) and downloaded compatible chromedriver from here I've started facing this error. While debugging in detail i found that the Select class causing the issue. wherever I'm selecting a dropdown in my code I'm getting this issue. The HTML of dropdown looks like below snippet: <div class="rd-input--wrapper" id="178"> <label for="attribute178">Flavour</label> <select name="super_attribute[178]" data-selector=

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

 ̄綄美尐妖づ 提交于 2020-07-31 03:53:00
问题 I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit) and downloaded compatible chromedriver from here I've started facing this error. While debugging in detail i found that the Select class causing the issue. wherever I'm selecting a dropdown in my code I'm getting this issue. The HTML of dropdown looks like below snippet: <div class="rd-input--wrapper" id="178"> <label for="attribute178">Flavour</label> <select name="super_attribute[178]" data-selector=

MoveTargetOutOfBoundsException problem with chromedriver version >74

风流意气都作罢 提交于 2020-07-31 03:15:22
问题 I don't know why ActionChains move_to_element() is not working with chromedriver >74. (But it works on chromedriver 74 and geckodriver.) Even though I add these three line before ActionChains, it still failed to move to element. WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.XPATH, xxxxx))) WebDriverWait(driver, 60).until(EC.visibility_of_element_located((By.XPATH, xxxxx)) drvier.execute_script("arguments[0].scrollIntoView();", element) ActionChains(driver).move_to_element

ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python

心已入冬 提交于 2020-07-30 11:43:08
问题 I try to use send_keys on a website, which gives me an error of element not interatable. Here is my code below: import selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.select import Select from selenium

How to assert a text field contains in selenium c#

不想你离开。 提交于 2020-07-23 11:57:25
问题 I have this code I'm trying to assert that a text field contains "Post Published" I can't seem to figure it out string actualvalue = driver.FindElement(By.Id("message")).Text; actualvalue.Contains("Post published1."); I'm not sure where to place my assertion. 回答1: You can use Assert.IsTrue for that string actualvalue = driver.FindElement(By.Id("message")).Text; Assert.IsTrue(actualvalue.Contains("Post published1."), actualvalue + " doesn't contains 'Post published1.'"); The message will be

How to assert a text field contains in selenium c#

依然范特西╮ 提交于 2020-07-23 11:53:53
问题 I have this code I'm trying to assert that a text field contains "Post Published" I can't seem to figure it out string actualvalue = driver.FindElement(By.Id("message")).Text; actualvalue.Contains("Post published1."); I'm not sure where to place my assertion. 回答1: You can use Assert.IsTrue for that string actualvalue = driver.FindElement(By.Id("message")).Text; Assert.IsTrue(actualvalue.Contains("Post published1."), actualvalue + " doesn't contains 'Post published1.'"); The message will be

How to assert a text field contains in selenium c#

☆樱花仙子☆ 提交于 2020-07-23 11:52:29
问题 I have this code I'm trying to assert that a text field contains "Post Published" I can't seem to figure it out string actualvalue = driver.FindElement(By.Id("message")).Text; actualvalue.Contains("Post published1."); I'm not sure where to place my assertion. 回答1: You can use Assert.IsTrue for that string actualvalue = driver.FindElement(By.Id("message")).Text; Assert.IsTrue(actualvalue.Contains("Post published1."), actualvalue + " doesn't contains 'Post published1.'"); The message will be

MaxRetryError: HTTPConnectionPool: Max retries exceeded (Caused by ProtocolError('Connection aborted.', error(111, 'Connection refused')))

我们两清 提交于 2020-07-23 06:48:07
问题 I have one question:I want to test "select" and "input".can I write it like the code below: original code: 12 class Sinaselecttest(unittest.TestCase): 13 14 def setUp(self): 15 binary = FirefoxBinary('/usr/local/firefox/firefox') 16 self.driver = webdriver.Firefox(firefox_binary=binary) 17 18 def test_select_in_sina(self): 19 driver = self.driver 20 driver.get("https://www.sina.com.cn/") 21 try: 22 WebDriverWait(driver,30).until( 23 ec.visibility_of_element_located((By.XPATH,"/html/body/div[9

MaxRetryError: HTTPConnectionPool: Max retries exceeded (Caused by ProtocolError('Connection aborted.', error(111, 'Connection refused')))

淺唱寂寞╮ 提交于 2020-07-23 06:46:11
问题 I have one question:I want to test "select" and "input".can I write it like the code below: original code: 12 class Sinaselecttest(unittest.TestCase): 13 14 def setUp(self): 15 binary = FirefoxBinary('/usr/local/firefox/firefox') 16 self.driver = webdriver.Firefox(firefox_binary=binary) 17 18 def test_select_in_sina(self): 19 driver = self.driver 20 driver.get("https://www.sina.com.cn/") 21 try: 22 WebDriverWait(driver,30).until( 23 ec.visibility_of_element_located((By.XPATH,"/html/body/div[9

Selenium Java - Page Object Model Query

江枫思渺然 提交于 2020-07-22 21:40:53
问题 Imagine there is a page say http://google.com/AddUser and here you enter details for a record and click save. Once you do this the page redirects to http://google.com/userList where you can see list of users including the new record you just entered. If we are going by page object model, the method to enter details and save record should exist on AddUser.java and the method to validate if the record was actually saved and displayed should be on UserList.java If we consider addUser and