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
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
563 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
565 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
2answers
3k 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
2k 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
7k views

Robot Framework/Selenium - Having trouble with dropdown lists

I know its a common question, but bear with me, as I really have no idea how to even solve this. I need my robotframework code to click on a dropdown list. So the html code for the desired list on ...
0
votes
3answers
997 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
1answer
146 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
555 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? ...
1
vote
1answer
31 views

How to open outlook and click on the link that is there in the mail using seleniumn

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
0
votes
1answer
72 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 ...
1
vote
2answers
4k 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 ...
0
votes
1answer
652 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. ...
0
votes
0answers
18 views

Try catch not catching NoSuchElementException

kinda confused. I have a method I created to help me handle various scenarios public void WaitHandler(IWebElement element) { int i = 0; WebDriverWait wait = new ...
0
votes
1answer
465 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
1answer
14 views

cannot click on link Python Selenium

I am trying to add a confirmation link on selenium but selenium is not able to click on that link its on yopmail with name janemartin90452 It doesn't click on the confirmation link Name "Activate ...
0
votes
1answer
220 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
82 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
75 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 ...
0
votes
2answers
47 views

The relative xpath for the 2nd button of two identical buttons - selenium

i need to identify the relative xpath for the 2nd button highlighted in the image Can someone help me //*contains(@class,'fa fa-clock-o') I used this. It identifies the first button again.
0
votes
2answers
670 views

Selenium auto-selected the second element returned using the findElement method

As per the below code, I navigate to a specified URL and select the values in the from and to field. The xpaths mentioned in the 3rd and 4th line, each returns 2 instances. In the third line, ...
0
votes
1answer
32 views

Selenium JUnit tests each with different logged in (authenticated) users

I am using Selenium and JUnit to automate tests. Lets say there are two tests and each has to authenticate with a different user and perform an action. Can it be done any smarter than to call an ...
0
votes
3answers
117 views

How to verify findElement in Div?

I can't capture with findElement the class, xpath etc. in: https://economia.estadao.com.br/noticias/geral,por-que-nao-tres-em-uma,70002648617 click on: entre aqui para ler a matéria. I already ...
1
vote
1answer
2k views

Headless Chrome browser won't switch to next window (Selenium + Python)

So I have a test case: When clicking a button a new window is opened. To switch to that new window I use: window_after = self.driver.window_handles[1] self.driver.switch_to.window(window_after) When ...
0
votes
3answers
28 views

how to get span based on the <p> found

How do i find the element Jessica based on 3000 using xpath. I'm getting ...not a valid xpath error. Jessica Total Wealth ($): 3000 <div> <span><b>Jessica</b></...
1
vote
2answers
2k views

What are the other ways of storing and accessing the webelement(locators) during automation testing

I'm aware and have also used two ways of storing the WebElements/locators (a.k.a Object Repository) External File (example: .properties , .yaml, .xml, etc...or any other file type) Using page ...
0
votes
1answer
356 views

How can I set the language of Safari and launch using Selenium?

I need to launch the Safari browser for automation with a specific language(Korean) for automation purpose. I am using selenium with python for automation. How can I do that ?
-1
votes
2answers
1k views

Deprecation issue for InternetExplorerDriver

I want to use PAGE_LOAD_STRATEGY strategy while launching IE driver by using the following code but I'm facing a deprecation issue for InternetExplorerDriver. What's the reason for it? ...
0
votes
1answer
1k views

Selenium Webdriver fails to load browser through WebDriverManager

We can run our tests in different browsers in selenium Webdriver, previously we need to executable files to run our test in any browser. But now we can achieve without using exe files & with the ...
1
vote
3answers
35 views

Print with specific text selenium & python

I have a program with python & selenium. I will print the program like this : end-bubble bubble ok end-bubble bubble high My goals are like this: ok high My idea is to print without the end-...
0
votes
2answers
137 views

How to Automate the fields that are text and drop downs. You are not sure that how may fields will be and of which type (text/drop down.)

The situation is that admin sets the Specified fields for the front end user and it is upon admin to decide how many fields he'll set for the user. One thing is that he can only create 2 types of ...
1
vote
2answers
110 views

How to automatically execute failed testing cases on Jenkins using extent report

I'm looking for a solution to execute failed test cases automatically on Jenkins. I'm currently running test cases through pom.xml which points to testng.xml I'm using extent reports to capture and ...
4
votes
2answers
3k views

How do I disable 'show all' download bar of chrome in selenium

I need to disable 'show all' download bar of chrome in selenium. Because the download bar is showing, UI elements in the lower portion of my page that need to be clicked are not visible. I'm looking ...
0
votes
3answers
385 views

Can't Select random months dates using jquery calender

I have Jquery calender in my application. I have task to select dates from different months using Selenium, but I can do only previous month and forward month. Actually I need to select dates from ...
1
vote
1answer
2k views

unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service

We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; ...
0
votes
2answers
30 views

I want to scroll to a specific location Selenium Java

I have a list of webelements, I have written the below code: List <WebElement> feature_tiles = driver.findElements(By.xpath("//div[contains(@class,'featuretile')]//a")); System....
1
vote
5answers
9k views

Unable to click button using Selenium Webdriver Java

I am trying to click a button through webdriver. After inspecting the button element it highlights to the following: XPath: /html/body/div/div/main/div/div[2]/div/div[2]/table/tbody/tr/td[4]/form/...
1
vote
3answers
563 views

How to get XPath for the text after the <b> tags

I Need to get XPath for the following, to get the text after the <b> tags <li class="SpacedOut"> <b>Name 6:</b> "ABC" <b>Name 1:</b> "BCD" <b>Name ...
3
votes
0answers
29 views

Server gets incredibly slow when running Selenium

I'm attempting to run Selenium (Chrome) test on 2 servers, each running Windows Server 2019 Standard (with GUI). The first server (the one with the worst specs) has the following specs: It runs ...
0
votes
1answer
1k views

How to disable Chrome Automation Extension via Selenium (Java)

I have a requirement to disable the "chrome automation extension" while running my selenium scripts. Can someone suggest me an approach to disable this extension using Selenium. [ Note: I ...
0
votes
2answers
70 views

Finding sibling of found element using selenium

I've got a field with a date in it that's identified by a code that's shown in the div previous to it. <div class="fcode"> <div class="fcode_n">(123)</div> ...
1
vote
3answers
3k views

Unable to find element with xpath within nested framesets

I'm using driver.findElement(By.xpath("//a[@title='A K T İ V A S Y O N']")); to locate the element given below in the screenshots but getting Unable to find element error. There are nested classes ...
0
votes
3answers
3k views

Issue using XPath

I'm having an issue. I'm using Selenium and PyCharm. Website: https://www.expedia.com/ I'm trying to click() on the "Search" button. I used these: driver.find_element(By.ID, "search-button-hp-...
0
votes
0answers
53 views

How can i assert a line that is present on the chrome console?

Basically i am trying to automate if a player receives data from OBS. Besides manual, the best way i can think of how to automate would be able to read and confirm that the player is receiving data ...
0
votes
3answers
204 views

TypeError: driver.actions(…).move is not a function

I am writing a selenium test in Javascript, where I want to move/hover cursor over a particular element. I tried bunch of things, but nothing seems to work - 1. driver.findElement(selector) ....
0
votes
2answers
170 views

login for https url having https different url for browser popup in selenium python

I have url https://dc1-common.naops.exu.xxxx.se/cgi-bin/index.pl and after entering I got another url https://dc1-common.naops.exu.xxxx.se with Sign In Browser pop up which requires for Authentication ...
0
votes
2answers
82 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 ...
0
votes
1answer
804 views

Unable to set proxy with BrowserMobProxy while modifying http header request in Selenium with Java

I am able to modify http request header using BrowserMobProxy, the same way explained https://sqa.stackexchange.com/a/37318/9043 But, the problem I am having at the moment is, that I am executing my ...
0
votes
1answer
19 views

Unable to locate pseudo element using javascript executor in Selenium JAVA

I am currently having issues with locating an pseudo element for a web page. I have checked other articles to use javascript and tried but it still isnt getting it. Below is a screenshot of what the ...

1
2 3 4 5
96