How to set navigator.webdriver to undefined with Selenium for Firefox...
I am trying to set the navigator.webdriver variable in the Firefox browser to undefined using Selenium in Python.I have been able to successfully do this when using Chrome, but now I need to do the...
View ArticleHow to overcome error message about large package zip file and invoke...
I am writing tests on Python and execute using Selenium with AWS Lambda. On last step uploaded zip package on S3 and attached link on this file in settings of Lambda, however when trying to save...
View ArticleIs there a requests .content equivalent for selenium?
I need to save the content of an image from a URL based on a PHP file using selenium. I am able to do this using requests by saving the pages .content then writing it to a new jpeg file, here is that...
View ArticleCannot find Chrome binary when executing a selenium (testng) test in jenkins...
I have a basic login test with selenium and testng. When executed from eclipse, it works as expected and invoke Google Chrome. If executed from TESTNG command line, it works fine too. This is my...
View ArticleUsing Selenium in Python to click all buttons in a webpage
I am trying to click on all the buttons on a webpage. I'd like to be able to click them all. webpage i can click on one of them by using css...
View ArticleHow to make Selenium script undetectable using GeckoDriver and Firefox...
Is there any way to make your selenium script undetectable in python using geckodriverI'm using selenium for scraping. Is there any protections we need to use so websites can't detect selenium?
View ArticleHow to optimize my code in selenium webdriver?
I am trying to optimize the code below to log in to the system, using try ... except. My first problem is that try except takes too long, because always looking for a certain element on the page. My...
View ArticleNightwatch: Basic auth with access_key not working
I created nightwatch.json file like below (with username and access_key properties):"test_settings": { "default": { "launch_url": "http://localhost", "selenium_port": 4444, "selenium_host":...
View ArticleRunning selenium script on client side, short remote access using .net-core...
Im working on some web app project in .net core. What I want to achieve, is sending a request to certain website but constructed by frontend (with cookies etc.) from user machine (to get his IP). I had...
View ArticleDisable cache in Selenium Chrome Driver
I’m using the Selenium ChromeDriver in order to measure performance of web pages. But by default in Chrome driver cache is enabled. Option --disable-application-cache is deprecated now...
View ArticleSelenium/Katalon can not get webelement's text when running in jenkins or...
I have a button's text <span _ngcontent-c4="" class="btn__text">FOO</span> When running Katalon (6.3.3) test localy everything is ok, but when running in jenkins the text FOO is loaded as...
View ArticleHow do I use python/selenium to automate sequence of button clicks on a website?
The problem i am trying to solve is this: my home security system does not have a scheduling option and I frequently forget to switch on the system.I am considering writing a python script that can...
View ArticleHow to parameterise method name in TestNG xml file?
Below is the testng.xml code. here I have test name Test1 and I want to include all the scenarios starting with regression tag (tag is present in cucumber feature file).I want to parameterise...
View ArticlePrinting with Selenium (Chrome): Select Pages
I've been using a recipe that I've cobbled together from online snippets in order to get Selenium to print the currently-visited webpage:appState = { "recentDestinations": [ { "id": "Save as PDF",...
View ArticlePython saving file to Wrong path
My intention for the code bellow is to save a file inside a folder. But the file is beeing saved on the folder before the correct one.How can i modify it so it saves the file to correct folder? #Make...
View ArticlesendKeys method is not working in VS Code while using Java
I am using Selenium writing in Java by VS Code. I cannot compile this line of code since there is a red line under the method sendKeys. The line of code...
View ArticleNo connection could be made because the target machine actively refused it...
I have a problem with my selenium test, when I try to run nothing happens and after 5 seconds it stopped, when i try to debug it, there appears error: enter image description hereAnd this is full error...
View ArticleHow to not wait for page load in ChromeDriver in C#?
I'm trying to read some values from a bunch of URLs. These values exist on the page when the page is not fully loaded. However, ChromeDriver waits for the page to fully load. I searched and found out...
View ArticleGetting Selenium-WebDriver Example to work
I am completely new to Selenium, and just want to install & run the example to begin with, as described here: http://www.seleniumhq.org/docs/03_webdriver.jsp I have installed the Java SE 9.0.1 JDK,...
View ArticleLogin gmail open message check for sucess or fail in message
Java Selenium program Login to Gmail account in search box check for text this is working fine. How to check if the message is a success or fail If I write a separate class im getting session ID null...
View Article