selenium-chromedriver

Send whatsapp message to contacts using Python but getting an error: InvalidSelectorException: Message: invalid selector: Unable to locate an element

穿精又带淫゛_ 提交于 2021-02-04 08:25:07
问题 I am trying to send whatsapp message to contacts using Python but getting an error: InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression //span[@title = "Me Postpaid"]"} (Session info: chrome=73.0.3683.103) (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 6.1.7601 SP1 x86_64) I have used selenium for this and the code is mentioned below: from selenium import webdriver driver = webdriver

Send whatsapp message to contacts using Python but getting an error: InvalidSelectorException: Message: invalid selector: Unable to locate an element

前提是你 提交于 2021-02-04 08:25:07
问题 I am trying to send whatsapp message to contacts using Python but getting an error: InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression //span[@title = "Me Postpaid"]"} (Session info: chrome=73.0.3683.103) (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 6.1.7601 SP1 x86_64) I have used selenium for this and the code is mentioned below: from selenium import webdriver driver = webdriver

org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools error using ChromeDriver Chrome using Selenium and Java

五迷三道 提交于 2021-02-04 08:18:06
问题 I am seeing below error and browser got disconnected between. Its happening only for chrome. Selenium version I am using is: <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.59</version> Error stack trace: [1579632222.785][SEVERE]: Unable to receive message from renderer org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools (Session info: chrome=79.0.3945.117) Build info: version: '3.141.59', revision: 'e82be7d358',

Cannot find table element from div element in selenium python

╄→尐↘猪︶ㄣ 提交于 2021-02-04 08:13:11
问题 I am trying to select a table values from div element using selenium , When I inspect the element, I could see the element contains the table but I cannot find it while viewing the source code (which is happening while trying to access through selenium). During Inspect: Below is the code I tried, totals = driver.find_element_by_id("totals")#gets the totals div element. Only one is there labels=totals.find_elements_by_class_name("hasLabel")#should get the table rows, but it was empty print(len

Cannot find table element from div element in selenium python

不想你离开。 提交于 2021-02-04 08:11:20
问题 I am trying to select a table values from div element using selenium , When I inspect the element, I could see the element contains the table but I cannot find it while viewing the source code (which is happening while trying to access through selenium). During Inspect: Below is the code I tried, totals = driver.find_element_by_id("totals")#gets the totals div element. Only one is there labels=totals.find_elements_by_class_name("hasLabel")#should get the table rows, but it was empty print(len

WebDriverException: Message: unknown error: no chrome binary at C:/…/Chrome/Application/chrome.exe with ChromeDriver Selenium and Python

最后都变了- 提交于 2021-02-04 07:54:35
问题 Bit of a Python newbie here... Windows 7 x64 and Python 3.7 I have installed Selenium and the Chrome Webdriver. I'm using: from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.binary_location = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe' driver = webdriver.Chrome(chrome_options=options, executable_path='C:/python/chromedriver.exe') driver.get('http://google.com/') I'm getting: \python\python.exe C:/py/defectURLS/app

selenium.common.exceptions.WebDriverException: Message: 'library' executable may have wrong permissions for ChromeDriver

一个人想着一个人 提交于 2021-02-04 05:55:33
问题 I want to use the chrome webdriver to connect to "https://www.google.com". below is the code. from selenium import webdriver import time driver = webdriver.Chrome("C:\\Users\\faisal\\library") driver.set_page_load_timeout(10) driver.get("https://www.google.com") driver.find_element_by_name("q").send_keys(" automation by name ") driver.find_element_by_name("blink").click() time.sleep(5) driver.close() When I run the test, the following error message is displayed.Its a permission problem C:

WebDriverError: no such session error using ChromeDriver Chrome through Selenium and Jasmine

别来无恙 提交于 2021-02-04 05:53:27
问题 I'm trying to make an automated test for my webpage and I'm using Jasmine in tandem with selenium. When testing on chrome (using chromedriver) I get, unpredictably, the error below. It happens frequently enough that when I run a test suite it hardly ever finishes. Ive found evidence of this bug but cant find a solid answer: https://bugs.chromium.org/p/chromedriver/issues/detail?id=732 (granted this was for chromium and I'm using chrome) WebDriverError: no such session (Driver info:

Unable to send text to Email field on Microsoft login page using Selenium

我与影子孤独终老i 提交于 2021-02-02 09:45:09
问题 I'm trying to figure out a way to automatically log in / enter text into a given text field on a particular web page. I've already don't this before, but this particular page isn't responding to anything I've thrown at it yet. The default page load already has the auto-focus on the necessary text box. I'm currently using Python to write the Selenium code. My current script includes prior processes that lead to the page in question, where my current problem lies. Additionally, I've been

Chrome DevTools not find elements not search

醉酒当歌 提交于 2021-02-02 03:44:39
问题 I am using selenium for chrome automation. for a while now the DevTool of chrome (F12) not working as expcted. (Version 84.0.4147.89 (Official Build) (64-bit)) When I try to locate element it is not find it even the element exists. Even when I press ctrl + f and search for a big word it is not find it. I need the dev tool since it is mark where the element, and where I am standing. Is their any soloution? I provide two pics: in one it's find and marked the value, and after I add the letter 'c