selenium-chromedriver

Python Script not Running and Not Giving an Error

百般思念 提交于 2019-12-24 10:15:35
问题 I am trying to build a python script that reads an excel file and stores the data in a dictionary. I have everything built out, but when my script is run the webpage opens to the correct page and does not move any further. All of my elements are found and the code is written into the fields when i run line by line. My excel columns are: FirstName, LastName, Email1, EmployeeID My python script that I have written is: #Importing necessary tools from selenium import webdriver from selenium

Can't click action link

*爱你&永不变心* 提交于 2019-12-24 10:09:20
问题 I have a page with multiple rows that each have a link, "Add Tenant Info" but I can't seem to click it in a way that would be unique to each row. I have been able to select take actions with driver.findElement(By.cssSelector("a[class*='sf-with-ul']")); Here is the HTML of the section: <tr class="false sub_row data_row highlight" id="spreadsheet_row_7117098" style=""> <td style="background-color: rgb(232, 245, 209);">Tenant 1 Name</td> <td style="background-color: rgb(232, 245, 209);"><a class

WebDriverException: unknown errors (“chrome failed to start” and “Failed to create a Chrome process”)

不打扰是莪最后的温柔 提交于 2019-12-24 09:18:30
问题 After installing Katalon Studio v.5.8.2 to a co-workers laptop, when trying to run the test, test fails with this exception Test FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: '' (Root cause: org.openqa.selenium.WebDriverException: unknown error: chrome failed to start (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not

scraping data from flipkart using python selenium

独自空忆成欢 提交于 2019-12-24 09:09:16
问题 Below code gives few of values it's not displaying all values in the page. from selenium import webdriver chrome_path = r"C:\Users\Venkatesh\AppData\Local\Programs\Python\Python35\chromedriver.exe" driver = webdriver.Chrome(chrome_path) driver.get("https://www.flipkart.com/mobiles") search = driver.find_element_by_xpath("""//*[@id="container"]/div/div[2]/div/div[3]/div[1]/div/div[4]/div[1]/div/div/a""").click() timeout = 20 posts = driver.find_elements_by_class_name("iUmrbN") for post in

Selenium opens up chrome not signed into Chrome account

匆匆过客 提交于 2019-12-24 08:52:25
问题 I have recently been working with Selenium WebDriver. I am also working specifically with chromedriver. Whenever I open up a new chrome window (driver.get(url)), Chrome starts up in a completely default state, instead of the state it would open up in if I just opened a new window from my dock (I am on a macbook running OS X Yosemite). Is there a way around this? Or is this just a set behavior? 回答1: You will get a default profile unless you specify which profile to use. To configure it so

Watir script occasionally returning Net::ReadTimeout error

只愿长相守 提交于 2019-12-24 08:49:16
问题 I have a Watir script, that occasionally and unpredictably returns this error: Net::ReadTimeout I searched this error and found this question already asked. I followed the top answer, and implemented this: attempts = 0 url = "https:/www.google.com/" begin doc = Watir::Browser.start url rescue Net::ReadTimeout retry end but I'm still getting the same timeout error. I've never had any connection issues with my network. I get the error on both an Ubuntu and a Windows 10 machine. My code goes

Chrome Webdriver unable to complete product checkout automation

心已入冬 提交于 2019-12-24 08:36:40
问题 I am attempting to automate the checkout of a product on this website. However, at the very last step when a button is supposed to be clicked to submit the payment, the button just loads and the payment is neither completed nor declined (Pop up expected to tell the user that it has been declined). As you can see below by the picture, the order information just keeps "loading" or "spinning" indefinitely. I am not sure why this is happening. Any help would be appreciated. Edit: I've used an

Problem using chromedriver 78.0.3904.70 locators

Deadly 提交于 2019-12-24 06:42:43
问题 I'm using the latest 78 chromedriver , I'm trying to locate an element inside a modal via CSS Selector, something that looks like this [data-qa='generalTab'] > [id='ui-id-1'] , I was able to run my tests using chrome driver 76. Now with the updated driver I have the following exception : org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: , the element is visible, and the selector is correct , I need to run the test without downgrading to 76. The element is

VBA Selenium FindElementByXPath doesnt find element

此生再无相见时 提交于 2019-12-24 03:24:26
问题 I have written a VBA which opens a web link using selenium chrome web driver to scrape of data and I got several problems with which I need your advice on guys. Code example and outcome 1: On error actived Sub test_supplements_store() Dim driver As New ChromeDriver Dim post As Object i = 1 driver.Get "https://www.thesupplementstore.co.uk/brands/optimum_nutrition?page=4" On Error Resume Next For Each post In driver.FindElementsByClass("desc") Cells(i, 1) = post.FindElementByTag("a").Attribute(

Chrome browser 61v. Problems with click on element outside visible area

耗尽温柔 提交于 2019-12-24 01:39:13
问题 When I update Chrome browser to 61v, there are problems with click on not visible element outside visible area. Earlier it worked Try click on link outside visible area: element.Click() There is: InvalidOperationException; element not clickable at point (1134, 989) Is there are some decisions with it? Maybe update chrome driver helps? 回答1: We had the same issue. We were using Chromedriver version 2.31. After updating to 2.32 the issue is gone. Below is one of the changes made for 2.32: "Fixes