I am using python and selenium to send a message to a target. I can successfully open whatsapp web but after that I cannot open the inbox of the contact to whom I want to send the message. Here is the code so far. The first part is common where I have to open the web page. It happened without
Tag: selenium-webdriver
Python and Selenium – Pick value from dropdown list
Trying to pick value in the dropwdown list as shown in picture – Dresses Dropdown IMAGE with open HTML By this line i’m able to click and expand the dropdown After i expand the dropdown list i tried to pick xPath/CSS selector for Dresses but nothing works How i copy the Selector Answer Induce WebDriverWait() and element_to_be_clickable() and click on
Selenium Chromedriver error chome not reachable but driver get works
I am trying to get the page content from a webpage, with the use of selenium and chromedriver. I am using an Ubuntu 18.04 subsystem on Windows. The driver.get method works, but getting the page content does not. Here is my code: Here is my error: Don’t really know what to do anymore, I tried changing chromedriver versions, maybe the
How to find element by part of its id name in selenium with python
I’m using selenium with python,now I want to locate an element by part of its id name,what can I do? For example,now I’ve already located a item by id name coption5 : Is there anyway I can locate this element only by using coption? Answer To find the element which you have located with: To locate this element only by
WebDriverException: Message: chrome not reachable after long time
This is the code: I need to open first selenium and then make things that require hours because when i open selenium i need to be ready and speed. If put driver = webdriver.Chrome() below the while, it would slow everything down i don’t know if it is relevant but i run this code with nohup command. Traceback: Answer Initially
How to send text to the Email field within https://accounts.google.com registration page?
I made proton mail maker script that can go to google sign in and put verification code to proton mail code section.. when I run that, it’s working correctly but it’s not typing google account for signing but he is not typing in the email section I had an error in google account email section here is my error: python
How to use existing login token for telegram web using selenium webdriver
I’m trying to read telegram messages from https://web.telegram.org with selenium. When i open https://web.telegram.org in firefox i’m already logged in, but when opening the same page from selenium webdriver(firefox) i get the login page. I saw that telegram web is not using cookies for the auth but rather saves values in local storage. I can access the local storage with
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
Recently I switched computers and since then I can’t launch chrome with selenium. I’ve also tried Firefox but the browser instance just doesn’t launch. i get the following error: i have the latest chrome version and chromedriver installed EDIT: After trying @b0sss solution i am getting the following error. Answer Try to download HERE and use this latest chrome driver
“selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element” while clicking a ‘Next’ button with Selenium
I’m trying to click the Next button using Selenium, I’ve tried with the code below, but it ends in error. The element My code But then it outputs these errors: How can I click that button without errors? Answer This error message… …implies that the ChromeDriver was unable to locate the desired element. Locating the desired element As per the
How to get selectors with dynamic part inside using Selenium with Python?
My application has a lot of selectors that have a dynamic ID inside. When that dynamic ID is at the end of the selector, I use [id^=’staticPart’] inside of every selector. For example: becomes: I works perfectly, but I can’t figure out what to do with selectors like this: where 0 is a dynamic number and everything else is static.