Category "selenium"

How to set timeout for "Page should contain element" in Robot Framework / Selnium when using "Create Webdriver"

I'm having an issue with the "Page should contain element" keyword in combination with the "Create webdriver" keyword. For example, using the "Open browser" key

Comparing dates works on one machine but not on another

I have an issue where on one machine comparing dates fails and on another it passes. I'm using Assert.AreEqual: Assert.AreEqual(Convert.ToDateTime(tableValue).

Selenium browser persists after a test is finished

I am using Firefox and the Selenium IDE plugin. I have a test for the login of my application. After the end of the test the browser stays logged in and the ses

Selenium Python - Get Network response body

I use Selenium to react to the reception of data following a GET request from a website. The API called by the website is not public, so if I use the URL of the

Is it a wise thing to add validation functions into the Page Object Classes in a selenium automation framework based on Page Object Model?

I've frequently seen code where the test validation functions are frequently written into the Page Object classes themselves. Is there any use to doing this? Ma

Unable to click option in dropdown list selenium

I tried using the Select module, but when I do the Element is either not interactable or it is "not visible". Here are the relevant codes. HTML < head &g

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: <select id="loc

Unable to locate element in Python Selenium with Chrome extension

I am trying to click on a button however when I do so I get an error stating that it cannot be found. NOTE: You will only see this button if you have the chrome

Connect Remote Database using Selenium Webdriver and run Test Cases from local machine through eclipse

I am using selenium web driver java built, the editor is eclipse. For testing one of our websites I am using Data-driven testing by fetching data from MySQL dat

How do you use credentials saved by the browser in auto login script in python 2.7?

When I manually open a browser, both firefox and chrome, and proceed to a website where I previously saved my login credentials via the browser, the username an

Code unreachable when adding Selenium ChromeOptions

For some reason my Python code displays as unreachable after adding a series of WebDriver options. Does anyone know why this is happening and how it can be fixe

How to set default download directory in selenium Chrome Capabilities?

Please find the below code with the chrome capabilities. In fact the browser is not downloading the file to the specified path. private static DesiredCapabili

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 th

How to associate chrome extension with specific tab?

I am opening chrome extension in a tab instead of pop up with following code: chrome-extension://xxxxxxxxxxxxxxxxxx/popup.html But when I do so the extension do

Verify color in selenium ide

I am actually looking at selenium IDE for testing many parts of websites, so I am new at this. I have been looking for verifying css styles attributes (for exam

The constructor WebDriverWait(chromeDriver, int) is undefined [closed]

WebDriverWait is not recognized even though it is imported in the eclipse IDE. Does anyone know the possible reason and fix for this?

Drivers for selenium will not work 'chromedriver' executable needs to be in PATH

Very new to this, and I cannot get chromedriver or geckodriver to work. They are both located in /usr/local/bin/. So I know they are in PATH. My code: from

What XPath to select only non-taged text inside div. Selenium. Java

I want to select only the text "only this text" from the snipet below using XPath (in Java) but that text is random and I don't know what is written there. &l

How to ignore the fail case and continues to next value

I am looping values from an Excel file by using ${txnExcel} to search and compare the value. But sometimes ${txnExcel} is doesn't exist in the system. In that c

Selenium with Python(POM)

I am new in automation testing. I am learning automation using selenium with python(page object model). From learning YouTube I see that, log in is done for eve