Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Stuck with No Element Visible Exception in Serenity

Below is my serenity.conf file and I'm facing issue when I'm trying to run the test- no element visible exception: drivers { chrome_options.add_argument = "--headless;--disable-dev-shm-usage&...
0 votes
0 answers
10 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 ...
  • 121
0 votes
0 answers
12 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 ...
  • 1
0 votes
0 answers
5 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
22 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. ...
  • 31
-1 votes
0 answers
7 views

how to display release date of any movie from imdb using selenium? [closed]

print July 16, 2010 (United Kingdom) in console. plz share code.
0 votes
0 answers
15 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. ...
  • 11
1 vote
2 answers
31 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
0 answers
15 views

How to read data from a spreadsheet?

I am using the Windows automation library to automate windows Forms, but I need to automate a lot of SQL scripts and read the name of the script from the spreadsheet, run it, and paste the result into ...
-1 votes
1 answer
19 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 ...
  • 101
7 votes
1 answer
119 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
6 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
21 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 ...
  • 1
-3 votes
0 answers
16 views

The xpath is unable to click an element in selenium,I have try with different xpath but doesn't work. And I want to click on 2nd element of an list

<li id="liAddEditRiskfactor" class=""><a href="#tab1" onclick="ShowAddEditAuditFactor()" data-toggle="tab" data-original-title="" ...
-1 votes
0 answers
21 views

How to automate verification of text files?

My application generates a lot of text files which have comma-separated values. I need to verify if some lines are present in my file as it is, then my script passes. I'm using Java and Selenium in my ...
0 votes
0 answers
9 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
31 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
0 answers
40 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"))); ...
  • 463
0 votes
1 answer
34 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 ...
  • 2,093
0 votes
1 answer
30 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
45 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 ...
  • 21
-2 votes
1 answer
86 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
104 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
28 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
2 answers
51 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
382 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
2 answers
49 views

Stale Element Exception when looping through list of elements

I 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 stale ...
0 votes
2 answers
33 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
203 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="...
  • 1
0 votes
0 answers
10 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 ...
0 votes
0 answers
39 views

Why does my WebDriver object become null in next scenario?

The single feature file contains 2 Scenarios. Scenario: Go to Given Open Firefox When Go to "https://somewebsite.com/" Scenario: Find profile icon Given Find user profile icon ...
0 votes
0 answers
68 views

Can not sendKey to hidden element

I am practicing to interact with element (nopcommerce domain). But encountered some problems when trying to perform sendKey to an invisible element. This is an input field of product tags which ...
  • 1
0 votes
1 answer
78 views

How to handle download pop-up in Firefox, while downloading XML using Selenium Webdriver?

I am trying to download an XML file from Firefox and Webdriver, but I can't handle the download pop-up. This issue comes only for downloading the XML files. When clicking the button, I need the file ...
-1 votes
1 answer
30 views

Automation of End to end Test with Selenium (for web App) and Appium (For Mobile App Testing)

We have this kind of end to end tests to automate : Log in in Web application. Follow few steps there. Do something in Web app so that logged user in Mobile App gets notification. In Mobile App ...
  • 99
-1 votes
1 answer
40 views

How to share an allure report over email

I have developed an automation framework using Selenium and pytest. Allure is the reporting tool used in the framework. Can anyone please help me to know how an allure report can be shared? Are there ...
  • 1
0 votes
0 answers
20 views

Mobiscroll : Selected value scrolled along when clicked up or down instead of remaning static

With reference to the following screenshot, I am trying to automate clicking of the down button by using the following code : driver.findElement(By.xpath("//div[@class = 'search-start-time']//*[@...
0 votes
0 answers
33 views

Log4j2 logs are capturing java debug code into of the log4j2 code I enter

Log4j2 logs are capturing java debug code into of the log4j2 code I enter like log.info or log.error. Can someone please help me in fixing this? Thanks. log4j2.xml <?xml version="1.0" ...
2 votes
1 answer
52 views

Scrollbar value returns false even though it is present

I have a pop up which enables a scroll bar depending on the element count it contains. Right now there are more than two elements and scroll bar is present. Below is my html view of the pop up. <...
0 votes
1 answer
29 views

Is there any way to trigger before Method only for specific test methods

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases. So is there any way to ...
  • 2,093
0 votes
0 answers
21 views

How to pass excel sheet value to DataProvider and achieve parallel Testing?

My excel sheet has 2 columns Username& Password with different 5 records, I want to read and pass data from this excel. I want to provide these to DataProvider then it provides Username and ...
0 votes
1 answer
36 views

macOS Monterey12.0+Python+Selenium+Chrome: WebDriverException: Message: 'chromedriver' executable needs to be in PATH & “chromedriver” can’t be opened

I am facing following multiple issues with Python + Selenium + Chrome : WebDriverException: Message: 'chromedriver' executable needs to be in PATH. “chromedriver” can’t be opened because Apple ...
0 votes
1 answer
141 views

How to read and pass multiple data from excel in selenium

My excel sheet has 2 columns Username& Password with different 5 records, I want to read and pass data from this excel and want to open 5 chrome browsers with these 5 users. How can this achieve?
0 votes
1 answer
64 views

Selenium : webdriver.Chorme() function problems

I have difficulties in finding a solution, can you help me? This is the code text: from selenium import webdriver web = webdriver.Chrome("C:\ Users\giova\Desktop\chromedriver.exe") web.get(&...
0 votes
1 answer
48 views

How to get specific data in a div with Selenium?

Let's say this website has frequently changed data (stores). I am also only interested in certain stores from my list. How do I get all the data of the first store from the top and from my list? I was ...
2 votes
1 answer
42 views

Selenium Webdriver : Trying to get text, but specific class present

Kindly find attached the html code of the section in question I use the following code and managed to get the text for Status successMessage = driver.findElement(By.xpath("//span[@class='status-...
0 votes
1 answer
855 views

Cannot invoke "org.openqa.selenium.SearchContext.findElement(org.openqa.selenium.By)" because "this.searchContext" is null error

I am trying to verify a functionality as a guest user and logged in user. In order to do that I log out form the system and verify the guest user actions then login again and verify logged in user ...
0 votes
1 answer
35 views

Element is not clicked even after explicit wait

I am trying to verify default selected value of a dropdown. <div class="p-3 p-md-4 mt-4 mt-md-4 card"><div class="row"><div class="d-flex align-items-center col-...
2 votes
1 answer
32 views

Verifying scrollbar is present script fails

I'm trying to check whether a scrollbar is present when there are more than 2 elements in a pop up. Here is the HTML code for the div which enables the scroll bar if when there are more than 2 ...
0 votes
1 answer
51 views

Get Time taken to change between two elements

I'm trying to get the scroll time of a carousel. I tried to take time when 1st element is selected and time when 2nd element is selected, then deduct 2nd time from 1st time and get the duration. Below ...
-1 votes
2 answers
30 views

How to create new user defined method for picking date from .csv file as param and automate script through Selenium with Java?

I need to create a method to read a date from a CSV file as a parameter. I also need to automate selecting that date from the calendar tool whose HTML is below. I'm using Selenium with Java. <div ...

1
2 3 4 5
61