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
4
votes
1answer
402 views

How to control CEF3 portions of .NET project using Webdriver2?

We have a very large .NET project. This has been E2E/regression tested using QTP for 3 years. Eventually, our AUT is moving to the WEB. This process is expected to take a couple of years, it will be ...
1
vote
3answers
84 views

How to pass excel column values into different test methods of a class in Java Selenium

I have an excel which contains 4 columns with N rows. Let us say Col1, Col2, Col3, Col4 are the headers. Now I have a java class and there are 3 methods inside it. public class test(){ @Test(...
3
votes
2answers
444 views

How to select second value in drop using Katalon Chrome Extention?

I'm trying to make Katalon chrome extension to click the dd/mm/yyyy language. But the problem is when I record the click on dd/mm/yyyy Katalon records xpath=(.//*[normalize-space(text()) and normalize-...
-2
votes
0answers
8 views

Where can i find a Good tutorial on using Apache POI library to read/write Excel sheets in Selenium?

I have many tutorials on the web that explain how to use POI libray to read/write from Excel sheets in Selenium. But most of them are too basic. Is there a course or reference material, which does in ...
4
votes
2answers
509 views

How to interact with the radio button if isDisplayed, isEnables are false

Scenario: I am automating a feature where I need to click on the radio button but after many attempts, it didn't work. So I checked with isDisplayed, isEnabled and isSelected.Upon execution it was ...
4
votes
1answer
1k views

Selenium & Adwords - How am I getting logged out?

I am currently building a reporting tool with Selenium on Adwords. (And no, I cannot use Google's API because it doesn't provide the functionality I want). I am trying to avoid logging in and logging ...
4
votes
2answers
2k views

Locate Elements through Shadow DOM in Chrome Selenium?

I currently have an automation tool built using Python. Currently, the tool serves the custom application my company has built on Salesforce. Salesforce released a Winter 2020 version, and implemented ...
-1
votes
1answer
22 views

How to write data to excel file-selenium java? [closed]

I'd like to have the data from each tr and td to excel. Each row is not fixed but total td count is 14 per every tr. List<WebElement> rows = driver.findElements(By.xpath("//tr[@id='...
0
votes
2answers
396 views

Selenium cannot load reply button on craigslist ad. It seems to be recaptcha problem

When I try to click on the reply button using selenium in craigslist.org It doesn't open anything, it just gives an error like "Error please try again later". If i'm opening the same craigslist's ad ...
0
votes
2answers
2k views

Use Selenium to select an option from an Input element with multi-select drop-down

I am getting this error message when trying to select a drop-down value: UnexpectedTagNameException with message 'Element should have been "select" but was "input" error' The Error is descriptive ...
1
vote
0answers
20 views

Is each Scenario in Cucumber BDD framework considered a separate .Java Class by JVM?

When I write Cucumber scenario's like:- User.java Feature File Scenario: Add a new user profile Given User is on the Add user profile page When user enters profile information and clicks ...
0
votes
1answer
244 views

Why is there different behavior of a Web Application with Automation and with Manual?

I am automating a website, there's web page containing few text fields, dropdowns. There is a mandatory field check for a dropdown, if I select the default option (which is 'Select') I get an error ...
0
votes
0answers
23 views

How to execute test cases after ide crashed

Kindly suggest if I have 100 test cases after executing 40 Test Cases my IDE was crashed. So, on the next time when I am restarting my Test Cases again the execution should be start from 41 to 100. I ...
-2
votes
0answers
34 views

Brute Force Automation [closed]

How to do the brute force this script for 50 time, anyone can help me? i'm using python selenium from selenium import webdriver #browser exposes an executable file #through Selenium test we need to ...
1
vote
2answers
11k views

Check Box check and Uncheck using selenium web driver

I am not able to list out the check boxes which are checked and unchecked.the checkboxes are placed in the div tags. And only class name is generated dynamically when the check box is clicked. ...
0
votes
1answer
1k views

How to inspect a element in a drop down menu in chrome and firefox?

The problem here is when we hover the mouse over the particular menu item, drop down items going to visible. When trying to click the inspect element the drop down items are not going to be visible. ...
0
votes
0answers
8 views

Executing cucumber feature file in eclipse

I have installed cucumber plugin on eclipse 2019-09 but the console doesn't show anything after I run the feature file. I have created Maven project in eclipse and created one package for testrunner ...
1
vote
4answers
33 views

Creating selenium scripts from requirements

Is it possible to create selenium webdriver scripts just looking at test cases, use cases or requirements. I always wonder how the scripts could be created in advance when the functionality has not ...
0
votes
2answers
4k views

Can't find any element using CSS selector with Selenium on Python

I'm running a script on vodafone.co.uk but I can't find any element using the CSS Selector. browser.get("http://freesim.vodafone.co.uk/") browser.find_element_by_css_selector("#frmNew > div:nth-...
0
votes
1answer
468 views

Unable to capture the alert in Selenium using Python

I am trying to test a web portal using Selenium and Python. The problem is, I am unable to get around an error, in other words, I am unable to catch the alert. Scenario: Search for a user, if the ...
0
votes
6answers
5k views

Xpath is Unable to Locate Element.

Can anyone help me in writing xPath for below image, I wrote one but it's not working. My xPath is //li[@class='active']//a[@class='dropdown-button btn']
1
vote
3answers
920 views

Selenium - How to copy entire excel column without using iterator

I'm new to selenium and I'm having following query. Query: Am working on a project where I need to copy 4000 values from an excel in a single go and I need to paste that in the list box of ...
0
votes
2answers
593 views

How do you enter data from a jhtml Area element using selenium?

Now in the application that i have to automate, there's a jhtml Area element. This is a sample jhtml area: http://pietschsoft.com/demo/jhtmlarea/. So the jhtml area has two elements for the text you ...
1
vote
0answers
35 views

How to avoid using same data in parallel execution

This question is similar to How to manage application data when running multiple tests in parallel? But I want to know if there's a way or listener in testNG that will lock certain method when running ...
1
vote
1answer
519 views

How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now. On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even ...
0
votes
1answer
2k views

Selenium driver.getWindowHandles() is not working while opening new tabs in same browser window

package demo.webtables; import java.util.HashSet; import java.util.Set; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa....
3
votes
3answers
522 views

AngularJS - Testing User Permissions/ User Access Levels

In our web-application(built on Bootstrap and Angular), certain tabs in the navbar are displayed only to particular users. Certain input boxes/ buttons are enabled only to certain users. I want to ...
0
votes
1answer
490 views

Unable to tap on Search on android keyboard using pressKeyCode(int) method

I am a beginner in Appium automation. The application I am testing, have this scenario where I need to tap on Search button from the native keyboard. I have tried with pressKeyCode method but getting ...
1
vote
1answer
29 views

Using loop how to get dataframe from each next pages and store table values using Selenium Python

https://seffaflik.epias.com.tr/transparency/tuketim/gerceklesen-tuketim/gercek-zamanli-tuketim.xhtml from the above website, I've achieved to enter date picker for two date range and then clicking &...
0
votes
1answer
526 views

Unable to connect to Remote Server using Selenium Chrome RemoteWebDriver

public static IWebDriver UserMultiUserSignIn (IWebDriver driver, string port, string hostName, string password, string Username) { string name = Dns.GetHostName(); ChromeOptions Options = new ...
2
votes
2answers
3k views

Executing the selenium script through servlets

I have a scenario in which I need to execute the selenium scripts through servlets. I mean I will get the same input from the front end (Web UI) by passing those values to selenium classes then I will ...
1
vote
2answers
638 views

How to bring elements to view automatically in Protractor or selenium

I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it. I was successful in automating this scenario but the ...
0
votes
1answer
54 views

Getting error - …either make it static or add a no-args constructor to your class

I am writing test scripts with Rest-Assured java. I have two classes ApiMethods and AppMethods belonging to one package and another test package called apiTests using the methods created in the ...
0
votes
3answers
778 views

Launch FireFox custom profile with geckodriver in java

I'm trying to launch a Firefox profile with add-ons in it, with selenium v3.12 and gecko-driver v2.10 and Firefox version 60.0, how-ever it seems that the custom profile is not working. below is my ...
0
votes
2answers
409 views

How to change the pip version in pycharm

In pycharm the pip version is showing as 10.1 but when i check the pip version in my CMD it is showing as 9.0.1. I am not able to understand why it is happening. If any one know the reason can you ...
1
vote
4answers
78 views

How to initialise the PageObject Class using PageFactory only ONCE in a Step Definition Class in a Selenium Webdriver + Cucumber project?

I am making a Regression suite Automation project using Selenium Webdriver, Java, Cucumber, Maven etc. Now, the problem is that I have multiple Page Object classes that I initialise again and again ...
0
votes
1answer
142 views

Error - NotImplementedException Was Unhandled

I am trying to subtract the result of 2 variables and I want to echo the result in Selenium. I am using VS2015 as my IDE. //Obtaining pressure For 2100 hours today driver.FindElement(By.XPath(".//*[@...
0
votes
3answers
199 views

Mouse hover action to browser window close button

I have a test scenario where the web application checks for the user's leave intent i.e., mouse hovering from the page to the browser close and then a frame gets triggered. Is there any way to do it? ...
0
votes
1answer
42 views

Switching from inner iFrame to the outter (parent) iFrame

I have an iFrame in another iFrame, I´am able to switch to the parent iFrame and then to the child iFrame, but I´am just not able to switch back to the parent one. Is it even possible to switch up top ...
0
votes
2answers
33 views

UI amounts and conversions to numbers/strings

I have a number of UI-visible amounts which I am comparing with what I have prepared as a part ot my test cases - randomized&mocked test amounts are doubles. What is the usual best practice? ...
0
votes
1answer
417 views

When i run my appium code during run time i am getting this error “Exception in thread ”main“ java.lang.NoClassDefFoundError”?

I have written a code to launch my app and click on the element, the app is launching but after launching when it is trying to click, I am getting an error which I am not able to understand why. ...
1
vote
1answer
910 views

Access is Denied Issue thrown at ChromeDriver Initiation step

Azure DevOps is triggering and running tests on a VM. All my tests are working fine on local machine. On VM, While trying to launch Chrome browser using ChromeDriver and WebDriverManager, tests are ...
-1
votes
1answer
50 views

Select dropdown is not working in selenium

I have got the error org.openqa.selenium.support.ui.UnexpectedTagNameException Element should have been "select" but was "span". Can you please help? I have tried this code: ...
0
votes
1answer
334 views

Selenium, data driven testing using NUnit and SQL queries.

I am developing a Selenium Test Automation Framework for the purpose of testing multiple websites. I have currently set up the Framework in Visual Studio using C# and implementing the Page Object ...
-1
votes
0answers
30 views

I want to select filter option in one website after running in eclipse there is no error in console but still filter option not able to click [closed]

try{ // WebElement ele = driver.findElement(By.xpath("//*[contains(@class,'slds-button__icon ee-button__icon action-c')]")); // driver.executeScript("arguments[0]).click();"...
0
votes
1answer
193 views

How to check webservice response in database using Selenium or UFT

I have an application. Different web services gets called when any action is performed. Let me explaian my scenario: When i update a value in applciation it's also get updated in LPS system. The LPS ...
0
votes
1answer
72 views

Selenium-JavaMail api-Unable to perform email verification. It throws error as :- Please log in via your web browser:

I use java mail API in selenium automation script to verify email confirmations. The scripts will be executed by different team members. I got this error, when someone tries to run from other IP ...
0
votes
1answer
27 views

Waiting for Masonry grid layout to be ready, before clicking button

Our app uses Masonry grid layout. After page_A opens, the tiles keep moving for a second or two. The test case is: open the page_A and click on the button which opens page_B. While clicking the ...

1
2 3 4 5
92