Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
4,970
questions
0
votes
2
answers
347
views
How to get link from web element without actual download using Selenium Python?
I have multiple link on webpage with button. I wanted to validate and ensure all link are working. Do not want to download each file and wait till gets finished. After successful download to check ...
0
votes
1
answer
480
views
New SeleniumManager api in Selenium 4.6.0 - Error: session not created: This version of ChromeDriver only supports Chrome version 102?
I am using new Selenium Manager functionality in the 4.6.0 version. However, it is downloading the Chromedriver.exe in the .cache folder, but its not compatible with the Chrome Browser.
Chrome Browser ...
0
votes
4
answers
243
views
Verify element is visible using selenium and java
I am trying to identify a specific element and perform some actions. This specific element is not available in every element I am looping.
Below is the element I'm trying to catch.
<span class=&...
0
votes
3
answers
256
views
Buggy websites for Selenium testing
I am looking for a buggy website to do functional testing with Selenium. The website needs to have some bugs in it. The wider the variety of tests I could do, the better. Could you suggest a buggy ...
0
votes
2
answers
109
views
Selenium : Unable to identify the Xpath of the Grammarly extension in chrome
Unable to get the Xpath for the Grammarly extension which has been added into chrome browser as an extension.
In the screen shot below , I am using GMAIL , but you can use any other website like https:...
1
vote
1
answer
900
views
Selenium, Python: Write, click next page loop
I'm trying to learn selenium with python and have been trying to automate:
Search of the next button on the page.
Click on this button.
Save each HTML page from the next page in a file.
Repeat until ...
0
votes
1
answer
204
views
How to click an element with Selenium Basic using VBA?
I'm trying to click the table button but I'm having trouble.
Here is the HTML
Tablo
And the Xpath
/html/body/div[1]/div[1]/main/div/div/div[3]/div[1]/div/span/button[2]
I tried the following didn't ...
0
votes
1
answer
434
views
element.text (similar to getText() from java) is not working and continuously returning empty string as value using python & selenium
Problem : element.text is not working and continuously returning empty even when I can see a real value
Solutions I have tried :
Tried finding element using different locator strategy: like xpath, ...
0
votes
1
answer
163
views
Verify search results using boolean value in if else
I have to automate the functionality of search.There are 2 possible out comes. one is result is generated the other is results not found. if there are matching results to search criteria a new div ...
0
votes
2
answers
75
views
Captcha Handling Technique [duplicate]
How to work with a selenium script where the if found captcha is in the mid of the script. Is it possible to pass the captcha and continue the automation script?
0
votes
0
answers
111
views
CSV file upload using Selenium is failing verification when executed in Jenkins pipeline
We have a comma separated CSV file that has product data as name, product number, and ID. The CSV file is saved in the test resources folder.
When uploading this CSV file locally, it works as expected ...
0
votes
0
answers
169
views
Selenium python vs microsoft sharepoint login with certificate
I'm using Python with Selenium on Mac. I need to access SharePoint website. I tested it on Chrome and on Edge.
I have an issue with this pop-up to select a certificate and have no idea how to click to ...
1
vote
1
answer
371
views
Error while testing android device using appium and selenium
I get this error and cannot start the device:
java.lang.reflect.InvocationTargetException
Unable to create a new remote session. Please check the server log for more details.
Original error: An ...
0
votes
1
answer
700
views
I'm stuck with the following "error java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "browserName" is null"
I can't identify any issue with the code, can someone help me
package com.ai.qa.base;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java....
0
votes
0
answers
18
views
How to match the location of a file contained in the project locally with the location of that file in the azure devops pipeline?
I have created a pipeline in azure devops in order to run automation scripts using seleniun in c#.
My issue is the following:
I run the tests or automation scripts locally and when I need to read a ...
0
votes
0
answers
12
views
how to locate element on a new window that pops up from a primary window [duplicate]
I am running a test on a story for payment, and when it gets to the page, a third party (Klarna), I was unable to locate the element from the new web page from the third party.
Could it be because the ...
0
votes
1
answer
49
views
how to input data on reCaptcha protected page automatically using intellij framework
I am presently working on a story that requires me to make payment via a credit card and Klarna, but unfortunately, I am not getting the right element when I try to locate it. However, I see the page ...
0
votes
1
answer
159
views
How to approach test automation of Graphs and Charts? i.e., elements made of <CANVAS> <SVG> tags
In my project, we have a module called Reporting which covers graphs and charts.
It's basically a dashboard on the homepage of the website with multiple graphs and charts (after inspecting them they ...
0
votes
0
answers
274
views
Cucumber .Hoook class is throwing errors due to not having an empty constructor
I've been struggling with this issue all the day and no way for solving it.
The thing is that if I put a non-empty constructor (with the context) for the .Hooks class, there is an exception of the ...
0
votes
0
answers
534
views
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address
My code is
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.security.Key;
public class Main {
...
0
votes
1
answer
226
views
Python + Selenium : Edge extension automation test failing continuously as driver.get(url) is not working
System :
Python
Behave
Selenium
Edge browser
Target : Extension
Problem :
Edge extension automation test is failing continuously. There are multiple observations :
Page gets loaded with enter ...
0
votes
1
answer
168
views
how to validate empty screenshot in selenium webdriver
Is there any possibility to check empty or blank screen shots. Sometimes, the screen shot is blank when am using TakesScreenshot ss = (TakesScreenshot)driver;
0
votes
0
answers
163
views
How to run selenium tests with 200+ parallel browser on EC2 instance
I have implemented parallel execution of Selenium tests and my requirement is to run the tests with 200+ parallel Chrome browsers.
I am running my scripts on an EC2 instance in headless mode. The EC2 ...
0
votes
1
answer
244
views
how to select input ID using span, I'm facing bug in selecting ID dropdown
I am new to Selenium, and in learning phase, would be appreciable for help:
my Code:
from datetime import date
from datetime import datetime
from selenium import webdriver
from selenium.webdriver....
0
votes
2
answers
36
views
Scrolling using the same code is working 7/10 times
With same code I have tried scrolling, firstly I scrolled to bottom then top and then to element so that element can get loaded properly even though sometimes testcases are failing due to scrolling
...
0
votes
1
answer
68
views
How to automate SMS receiving testing with Appium?
i'm working on test automation for a webApp and there are scenarios where i need to make sure SMS are being received correctlly by users, Current testing is built with webdriverIO so my question is ...
0
votes
0
answers
58
views
unable to locate and Element after else condition
i have provided the condition when in if it works fine and after accepting the condition it is coming out of the loop and finding elements.but after executing else condition it is not finding the ...
0
votes
0
answers
18
views
How to reduce execution speed by using gitlab runner
I have a GitLab repo with selenium 4 TestNG tests. They run on 4x8gb runner.
It has a pipline that compiles runs sanity check, downloads drivers and then push it, for next 3 parallel jobs to download ...
2
votes
3
answers
153
views
How to create an HTML test report in Selenium automation framework?
In my selenium java, Cucumber framework, i use an excel spreadsheet test results report. Now, there is a requirement to make a HTML report after every run of the test. How can i code an HTML report. ...
0
votes
0
answers
82
views
How can I check that one element that has the same details as other elements is displayed/clickable using Selenium
I have a scenario that results in one of many validation icons appearing. I need to be able to assert that any one of them is visible but I have problems because of the other ones that remain hidden.
...
1
vote
2
answers
40
views
Should most of the Regression testing items be automated?
I work on a very complex financial product. We have very few Regression items/test cases automated. Like 20% is automated. Now, should I automate more and reach till 70-80 % coverage.
Is it necessary ...
-1
votes
1
answer
396
views
How to get the correct XPath for a column title using C# and selenium webdriver?
I have the following HTML
<label class="ms-Label headerText-269" title="Reference Id">Reference Id</label>
which I am trying to locate using XPath.
I have written the ...
7
votes
1
answer
349
views
Selenium + Java: How to get the OS, and Browser details on run time?
What I want to do is, while I'm running my tests, I want to get the current,
Operating System
Browser Name
Browser Version
This is for making the details clear in the test/bug report.
I haven't ...
0
votes
0
answers
55
views
How to access Iwebelemt in the function of other class using getter and setter in c#
class UtilityClass
{
public IWebDriver driver=null;
//public String baseURL = "https://accounts.google.com/";
public void OpenURL()
{
...
0
votes
1
answer
104
views
Convert Python or C# selenium test file to .side file?
I am trying to build additional functionality into Selenium IDE and would like the ability to import and run tests created outside of Selenium IDE using the browser extension. Is there any sort of ...
0
votes
0
answers
67
views
How can I click this checkbox agreeing to electronic signatures in a Docusign form with Python using Selenium? ::before and ::after problem?
This is my first post so forgive me if I use the wrong terminology. I'm using Python 3.10 Selenium 3.141.0 on a PC running Windows 10. I'm working on a script to automate signing Docusign documents ...
2
votes
1
answer
44
views
How to handle AB testing approach with similar page logic but different locators
I have a test suite that currently runs across different development environments. Recently a complete rewrite of the application was done & deployed to a new environment.
The application looks &...
0
votes
1
answer
98
views
Can't find a specific element generated in DevExpress
I am attempting to find an element using this code:
try
{
new WebDriverWait(wdriver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.Id("messageGrid_TL")));
...
0
votes
2
answers
226
views
How to end the if condition if ,if condition keep failing all the time
I have the below method in my code to check if a text was updated on the web page.
As for the code, I will keep refreshing the web page until the text changes to "Hot" and call the same ...
0
votes
2
answers
566
views
data: appearing in the address bar with selenium
I am using seleniumGrid with chromedriver for running a series of automated testcases with TestNG and Selenium
The thing is that there are several tests that launch a new chrome window that has a &...
2
votes
2
answers
278
views
Not able to match ChromeDriver version with chrome version
So at my current job I’m at a pinch, we can’t just download executable jars and use them. We have to request to download whatever we want . So the problem is , our chrome gets auto updated where as we ...
-2
votes
2
answers
1k
views
Getting javascript error: element is not defined
I am trying to verify carousel has auto flash and manual selection options. For manual option I checked the slick dots are clickable. For auto flash option I am checking the style animate-repeate is ...
0
votes
0
answers
569
views
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died
I am running selenium scripts on EC2 instance in headless mode. The scripts run multiple parallel chrome browsers. So 1 out of 3 times I get the following error -
org.openqa.selenium.remote....
0
votes
0
answers
200
views
find the list of hidden elements using selenium with java
I am trying to fetch all elements using findelements method. However, it is getting only visible elements rather than all hidden elements. Could anyone please suggest how to get the list of all hidden ...
0
votes
3
answers
205
views
getText() method is returning all small letters in selenium instead of actual case
When I tried to get text of particular element which is returning all small letters. Hence my assertion has failed. kindly help me to get actual innertext and please let me know is there any other ...
0
votes
2
answers
5k
views
Loop through list of elements and perform a button click
I'm trying to loop through a list of products and identify a product with discount/promotion. if product with discount is available I want to go inside that product clicking buy now and exist for loop....
0
votes
3
answers
671
views
Stale Element Exception when looping through list of elements
I am trying to loop through a list of products, identify products with discount and click on the first product with discount and and navigate to product page. While looping through for loop I get ...
0
votes
2
answers
44
views
How to assign an IP to a seleniumGrid
I need seleniumGrid to be accessible via localhost (127.0.0.1) and instead of that, it is being offered in address:port 192.168.1.39:4444
What command option can I use to make it use localhost?
The ...
0
votes
1
answer
3k
views
How to find and click a span class element using the text of a sibling span class
<div class="answersContainer">
<div class="answer fadeIn" style="visibility: visible;">
<span class="answerBox">
<a name="...
0
votes
0
answers
26
views
Automation of Dynamics CRM - how to change role in Selenium?
trying to find a way to change roles/teams for the account executing a Dynamics CRM test suite. This is so that business functionality can be covered correctly eg we have Scheduler roles that do ...