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
-1
votes
0answers
13 views

Not able to create First appium Test Script to Launch App on Real Device [on hold]

Eclips error: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An ...
1
vote
3answers
28 views

How to select option in a dropdown when the html-tag has a random id

I have a problem how to select a desired option (e.g. From, To...etc.) from list if 'datalist id' and 'select name' are randomly generated. This means that the ID and name has another value after ...
0
votes
1answer
14 views

How to get text from header having separator

How to fetch text for <h1 _ngcontent-gtj-c13=""> Site-2 <span _ngcontent-gtj-c13="" class="seprator">|</span> Building-1 <!----> </h1> I have used attribute ...
1
vote
1answer
16 views

Run Selenium test case in time interval from a console application c#

how to create a console app - a batch file which will hit my Automation testing application and runs selected test cases. I have test case with code coverage and it runs from my visual studio . and ...
0
votes
0answers
29 views

Selenium not allowing to choose from dynamic drop down list values

I'm using Firefox and Selenium with Python 3.7. What I'm try to do is: from the Yahoo Finance page search for IBM in the search box and go to that page and select "chart." This brings up the chart ...
0
votes
0answers
16 views

Selenium driver throws session has already finished error when using driver.getCurrentUrl()

I'm using cucumber with selenium driver to run automation testing using sauce labs. I noted that it is throwing below error whenever it try to use driver.getCurrentUrl() methods in some cases. I also ...
-3
votes
0answers
12 views

Why jenkins build is failed at one step

://i.stack.imgur.com/wiNtU.png all elements are not coming when i run executing build
0
votes
2answers
18 views

Unable to upload file even using autoit as my IE browser taking long to open upload windows popup

Unable to upload file even using autoit as my IE browser taking long to open upload popup once we click on the browse button but my script runs when i execute manually. Also my objective is, i need ...
1
vote
3answers
40 views

locating element by id or css, which is faster?

If there is an id available for an object in a page, find element by ID or CSS - which is faster? element(by.id("btnButtonID")) OR element(by.css("#btnButtonID") Since we can identify any objects ...
0
votes
2answers
19 views

Save variable from java test class 1 and use variable in java test class 2

I have written the Selenium scripts (page object model) to navigate a website, fill in form data, and submit the form. I next need to verify that the form data was indeed saved in the database. My ...
0
votes
2answers
24 views

How to Handle Dynamic Changing IDs inside a span

How to Handle Dynamic Changing IDs inside a span In XPath? for example : <span id="listv2_f40a0e90dbcc089cae10d48a489619ee_total_rows" style="margin-left: 1px;">2000</span> In this ...
0
votes
1answer
43 views

Unable to navigate to the URL in Microsoft Edge

I am trying to launch Microsoft Edge browser and navigate to google.com but as soon as the browser launches the execution stops and the browser closes. I am getting the below error in the console. ...
0
votes
0answers
31 views

Selenium - Question about how to traverse and select/copy specific texts

In this example, I would like to find all span class of "server-error". I think I am able to do that and store in an array. But here is where it gets tricky for me... Is there a way of appending the ...
0
votes
1answer
28 views

Can Selenium automate iOS Safari webpage tests on a real iPhone?

I want to automate a website on a real iPhone with Selenium. Is that possible or do I need Appium? Ideally I will launch my tests from my Windows machine via RemoteWebDriver edit: it looks like it ...
1
vote
1answer
55 views

What tools will let me analyze automation reporting results?

I'm looking for a tool that stores the history of automated test runs performed on Jenkins and allows analysis to be performed to the desired level of detail. Today we have several Jenkins jobs that ...
1
vote
2answers
31 views

Cannot initiate TestNG test

I'm learning to use selenium WebDriver with TestNG plugging for Eclipse and I ran into this issue where I can't execute the test case (it is unfinished but it has no compile errors nor warnings). ...
-1
votes
1answer
43 views

Text field clear automatically after entering the value as sendkeys

I tried to login on my mobile webbrowser. After passing my username as string, it clears automatically. My code is loginId.click(); loginId.sendKeys(userName); The script fails only with the ...
0
votes
2answers
59 views

How do I select a random checkbox on the web page?

I have 3 checkboxes on the webpage. Each time, I want to select checkboxes randomly.
-1
votes
2answers
59 views

Selenium Testing

Can anyone please help me how to use 'contains' in my xpath while selecting a date from datepicker. This is my xpath : //*[@id="UserDetails.EffectiveDate_DDD_C_mt"]/tbody/tr/td[contains(text(), '2')] ...
4
votes
4answers
95 views

What is best approach to run regression Automation in Agile

We are following agile methods in manual testing. We had not done any automation until sprint 10. Our current sprint is 15. After sprint 10, We started automation using Java, Maven, and Selenium ...
-1
votes
0answers
29 views

automated testing: get toaster with selenium and python

I don't know how to proceed and hope you can give me some tips. So I am doing some automated tests with python and selenium. I want to write something like a Observer, who reacts when a Toaster ...
1
vote
0answers
32 views

Issue with switching to the new window in Selenium + Python (chromedriver)

I'm having an issue when I try to switch the new opened window. Every time I execute a test case, my chromedriver opens with a window named "data:,". My code: def test_case(self): reg = Register(...
0
votes
1answer
14 views

Selenium Mac Salesforce

I am trying to automate to log in into salesforce account and after it logs in i want it to click on contact button but for some reason it wont, i even wrote a different function just for it to click ...
0
votes
2answers
43 views

How do I find total number of links on a web page using selenium and java 11?

package exsc; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.By; public class S1 { public static void main(String[] args) { ...
0
votes
0answers
27 views

Using Selenium Webdriver Python Scripting file picker popup is not getting displayed using MACOS

Hi I have been trying to automate a page using Selenium Python on MACOS. And in one of the page there is a file picker popup that is supposed be displayed to upload files. Manually when running I get ...
-1
votes
2answers
44 views

Is there a better way of carrying out basic text and form validation instead of doing it at E2E?

My understanding of E2E tests is that we should be carrying out tests that run through the whole system to check if everything works together via Selenium (for a web application). However, I've seen ...
0
votes
1answer
27 views

How to Allow notification permission for desktop-notifications in Chrome Browser using python scripting

Hi i have been trying to automate a page using Selenium Python. And in one of the page it requires the user to grant permission for mic & cam. I have written the code for the same using the ...
1
vote
1answer
36 views

How to allow camera permission (OS level dialog) using Selenium RemoteWebDriver?

I have a PWA (which means essentially a webpage + serviceworker) that asks for the user's camera and location via getUserMedia and getCurrentPosition javascript calls. These calls create an OS level ...
0
votes
1answer
33 views

Selenium WebDriver document.getElementById instead of send_keys

I have the following code driver.find_element_by_id("Element_ID").send_keys(str(sheet.cell(row=r, column=2).value)) Values is taken from excel, but instead send_keys, I want to use document....
0
votes
0answers
26 views

Selenium: Capture DOM Elements Image

I have an API to capture the image of a particular element in DOM and return them. For that, I have a list of WebElements which needs to be captured into a single webpage. For that same, I have found ...
3
votes
2answers
63 views

using Python Selenium Not able to perform click operation

I am automating for the following page on CHROME Browser https://study.yupl.us/studies/5d5a64aa8b5bb92fb776753b?auth=false Here I'm able to identify the unique element from the console for the XPATH ...
-1
votes
0answers
27 views

Syntax error on token “Invalid Character”, delete this token

Exception in thread "main" java.lang.Error: Unresolved compilation problem: Syntax error on token "Invalid Character", delete this token com/X1SGZ.png
1
vote
3answers
44 views

How to handle a messenger pop up which does not always appear?

Some times a messenger pop up comes up on application which is completely random. It may appear in any page and also not as soon as you land on a page. It may take a while to pop up. It is basically ...
0
votes
1answer
37 views

Teardown of Multiple Threaded Tests with Selenium

I'm trying to run multiple test cases with Nunit in C# in which every test needs its own Selenium Chrome Driver. Before it was threaded, I handled the chrome driver with [Setup] and [Teardown] like ...
0
votes
0answers
26 views

Driver does not recognize pop-up's - can not switch

In years it is the first time I saw something like this, when I do a: config.getWebDriver().getWindowHandles().size() The result is always 1, but in fact, there is a main window opened and after a ...
0
votes
0answers
30 views

Verifying that a pdf is correctly displayed

I have created scripts in new relic synthetics that verify the web application is still behaving correctly. This script does the following things: go to the specific page click on a pdf link ...
1
vote
1answer
61 views

How to improve element selector?

How can I improve this selector? WebElement ele2 = driver.findElement(By.xpath( "//*[@id=\"nav-flyout-shopAll\"]/div[3]/div[1]/div[1]/div/a[4]/span[1]" )); Thanks package SelenuimSession; import ...
2
votes
1answer
25 views

Selenium python checkbox by span class

I have an issue with checkbox check in selenium python, I want to make not exact xpath, but something like I did earlier in the code : browser.find_element_by_xpath(".//span[contains(text(), 'Dalej')]"...
0
votes
1answer
40 views

How to run script continuously in selenium even Assertion is fail or Pass

I have scenario, in Excel file in first column having 3 URL. And with help of for loop i am able to launch first URL and trying to find whether single image is getting displayed or not. But in ...
-1
votes
0answers
17 views

Drop Down of Vue Bootstrap

How to select an option from vue.js bootstrap drop down using selenium IDE. This is vue.js code of dropdown <div class="form-group"> <v-select name="Country of ...
-1
votes
2answers
34 views

Can anyone explain use of Driver Factory and its implementation to get parallel browser at same time?

When do we need to create a Driver Factory ? What advantages do we get over regular initialisation of driver when we use driver factory approach. Also how to initiate parallel browser testing using ...
3
votes
2answers
59 views

Success rate of “click” actions with Selenium? (Relatively)

I've used a tool called Ranorex for my test automation projects, and it has an annoying issue with click actions: They are not stable. A click on any element can be missed at any time, even when the ...
-1
votes
1answer
29 views

Turning off captcha in selenium [duplicate]

i want to get rid of filling a query form on daily basis and want to automate it. But it is having captcha and i want to turn off captcha so that i can automate form using selenium webdriver using ...
3
votes
1answer
78 views

Launch web driver without instaling it?

I was trying to launch a PhantomJS browser and it works on Azure VM. (I just point the PhantomJS.exe and it works) Then I try to launch a google web-driver and its asking me to locate the google ...
0
votes
1answer
28 views

Advice or articles about unit testing page objects and related UI test infrastructure code

Does anyone write unit tests for page objects and related UI test infrastructure? If so, what suggestions do you have for designing those unit tests? Do you mock WebDriver instances, or take another ...
-1
votes
1answer
14 views

The navigator does not take the url that I indicate to him using Selenium on Python

everyone. First, excuse me for my bad English. I will try to go a specific URL but just the browser its open. This is my code 1 file: from selenium import webdriver class Objects: def __init__(...
-1
votes
0answers
44 views

Button Click is not redirect to next page in Selenium WebDriver

While Clicking on any button it is not redirect to next page but it is open Previous page in Selenium webDriver. Steps are: Home Page Open Successfully, Clicking on Login button(next Page open ...
-1
votes
1answer
31 views

I`m using Selenium, is there any way i could reduce the time taken to continue the script if the element is not available?

If the element is found it takes only around 3 seconds to move to the next code, but the script takes around 2.5 min to execute the steps if the element is not available. Is there any way that I could ...
0
votes
0answers
7 views

PackageRelationshipCollection issue in selenium

Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log(ILjava/lang/Object;)V from class org.apache.poi.openxml4j.opc....
-1
votes
1answer
34 views

Extent reports issue in maven project

I am using extent reports in my project but it is showing me error and I am not getting solution for this error: [RemoteTestNG] detected TestNG version 6.14.3 Starting ChromeDriver 75.0.3770.140 (...