Skip to content
Advertisement

Tag: selenium

Selenium give file name when downloading

I am working with a selenium script where I am trying to download a Excel file and give it a specific name. This is my code: Is there anyway that I can give the file being downloaded a specific name ? Code: Answer You cannot specify name of download file through selenium. However, you can download the file, find the

Can a website detect when you are using Selenium with chromedriver?

I’ve been testing out Selenium with Chromedriver and I noticed that some pages can detect that you’re using Selenium even though there’s no automation at all. Even when I’m just browsing manually just using Chrome through Selenium and Xephyr I often get a page saying that suspicious activity was detected. I’ve checked my user agent, and my browser fingerprint, and

Error message: “‘chromedriver’ executable needs to be available in the path”

I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/ After downloading the zip file, I unpacked the zip file to my downloads folder. Then I put the path to the executable binary (C:UsersmichaelDownloadschromedriver_win32) into the Environment Variable “Path”. However, when I run the following code: … I keep getting the

How to find parent elements by python webdriver?

Is there any methods for python+selenium to find parent elements, brother elements, or child elements just like driver.find_element_parent? or driver.find_element_next? or driver.find_element_previous? eg: I’ve tried like below, but fail: How can I get the parent of input element and then, finally, get the option selected? Answer You can find a parent element by using .. xpath: What about making a

Advertisement