Category "selenium"

Put value in divs per digit(6-digit code) with Python Selenium

I put value in 6-digit code but i cant continue. I do this: d = driver.find_element_by_xpath('//*[@id="root"]/div/div/div/div/div/div[2]/div[1]/div/div/div/

Selenium 4 in Python works with Edge option headless False, but not with True

So I have function which takes some information from a website (https://www.fragrantica.com/perfume/Dior/Sauvage-Eau-de-Parfum-48100.html ; and I want to take r

Selenium webdriver -> closing my chrome after one second

I have issue with selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.binary_location = "

How do I get href attribute value from the given HTML using Python+Selenium?

I have HTML as shown (modified to make it brief) ht=<a class="title" href="http:/www.myref.com/1235" title="This is link to my ref">This is my ref</a&g

Impossible to click on element with selenium when browser not on mac current space

I'm using selenium in python to control a website. I use Firefox. I want to click on a mat-select element. When Firefox is on one of my Mac used spaces (or desk

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

How to wait for the page to load in HtmlUnit not HtmlUnitDriver

I have a selenium code below which wait for the page to load before the action(click button) is performed. How do I do the same thing with HtmlUnit not HtmlUnit

Python & Selenium: How to get Elements in DevTools with CDP (Chrome DevTools Protocol)

I'd like to get all source code in Elements with Chrome DevTools. Although I tried the following code, these values are not match with the above code. body = d

WebDriverException: failed to wait for extension background page to load: xxx Selenium

When I try to add an extension on my script like for example "Selenium" I get this error message: selenium.common.exceptions.WebDriverException: Message: unkn

Minimize chrome ribbon button in python selenium

I have python selenium code to expand chrome button as mentioned below. button.click() And it expands button like this: Now I want to minimize button. Is ther

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

Eclipse-Selenium-Extract the value from the table

I am relatively new to the Test Automation and in particular to the Selenium. I am using Selenium Web-driver, Eclipse. I can not extract the value from the colu

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

Selenium 4 C# Edge IEMode - WindowHandles funtion does not increase number of handles when new browser window appears

I updated Selenium to 4. I test legacy app that runs only on IE. Now IE will be closed down and I need to switch to MS Egde in capability mode. My tests during

Problem locating element with xpath in Selenium

I am having some troubles to locate an element with Selenium. The page html where I'm looking for it is: enter image description here Specifically, I want to ge

How to fix tiktok selenium robot detection

How to fix TikTok selenium robot detection Background-Info I'm creating a python selenium bot to do things on the TikTok website. The user will log in manually

Linkedin bot Selenium Beautiful Soup not reading email in /overalay/contact-info

So whenever i run the following code, it writes 'no mail found' in the email.txt file. Ive checked the classes in inspect and they're correct. Anyone has any id

Cookies not loading in discord selenium python

I have such a situation, I log into the discord and then save the cookies with this code pickle.dump (driver.get_cookies (), open (r "cookies_discord.pkl", "wb"

Scraping data with BeautifulSoup and Selenium

I am using BeautifulSoup and Selenium to extract web data (beautifulsoup to parse the HTML page and Selenium to click Next to get to the next list of items on t

Appium Android driver is un installing for second time even full reset is false

Appium Android driver is un installing for second time even full reset is false. Below are cases i am attaching. ** First time installing as expected ** capabil