Questions tagged [selenium-webdriver]

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

0
votes
2answers
518 views

How to click on the span type element in selenium?

<span class="tm-button-icon__label taLabel _flex"> <span class="tm-button-icon__text"> Demo </span> <span class="tm-button-icon__inner-description taOption"> ...
0
votes
1answer
57 views

Using FindBy in abstract class

I have couple of pages that have similar structure, similar elements. But selectors are different from the first tag. Example: Selector for the element on one page: @FindBy(xpath = "//picture-item//...
0
votes
2answers
1k views

Is it possible to call one custom keyword function from another Custom keywords from katalon Automation Tool?

I am trying to call method from one custom keywords to another Custom keywords functions But I am getting below error, 05-30-2018 02:59:02 PM - [START] - Start action : ...
0
votes
1answer
52 views

Selenium code generates error messages the likes of CS0246 & CS0103

I am getting lots of CS0246 Code error messages in Visual Studio after trying to run the Selenium code below. I have chosen the ASP.Net Core file to programme the code in. The file is called ...
2
votes
4answers
195 views

Replacement of @Findby in pagefactory for dynamic value with locator

I like to use POM pattern with page factory and in fact I have been using it since long in my various automation frameworks. Some time I am facing issue where I have to write text based xpaths in ...
1
vote
1answer
61 views

Click the last but one checkbox

In a page there are n number of checkboxes. Each time the page refreshes the list of checkboxes will also be refreshed and can be a different size. How do I click the second last (last but one) ...
0
votes
1answer
27 views

Compilation error when extending class and defining a method

I am getting compilation error when I am extending Loginpage class through Loginbusiness, define a method but compilation throws an error to remove illegal identifiers(eg. public) and also for ...
0
votes
0answers
45 views

Code can't be executed after running click method

After being run click function , i don't know why but the next sendKeys function can't be executed. eclipse is getting stuck and after a while, i'm facing with "timeout waiting for page to load" error....
0
votes
4answers
6k views

Can I execute selenium test cases in a real browser through jenkins without grid

Am executing Selenium test cases from Jenkins locally but execution is happening in back-end am not able to see the browser launch and close. Is it possible to see the execution when I trigger from ...
2
votes
1answer
73 views

How to explicity fail e2e tests on unexpected behavior?

I am currently using protractor but the idea would be similar for any flavor of Selenium. Right now, depending on which step the test is on, my current framework will wait for elements to be ...
0
votes
1answer
45 views

Selenium. Chrome v74. Freezing after cookies deletion

After updating Chrome to 74.0.3729.131, problems are appeared. Using webdrivermanager 3.4.0 for managing chromedriver. public class UiTestBase { public static WebDriver driver = null; public ...
0
votes
1answer
57 views

How to deal with ui-sref in Selenium

The Context: I'm using selenium in java to click on a link to navigate to the other page of the application. The Problem: The application is made in angular-js wherein I tried to click on the Link,...
0
votes
1answer
405 views

Automation testing for check-point image on map using sikuli(Java)

I am doing Automation Testing for the map. On the map, there are number of check-points or way-points (image.png) are present. I want to compare two images, one is saved in the folder and another is ...
4
votes
2answers
362 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...
2
votes
4answers
589 views

Cucumber : Is it necessary to create multiple step defination class for single feature with multiple scenarios?

I have created one feature file which has 4 scenarios. Do I need to create 4 step definitions or only 1? If 1 then is it ok to have multiple @Given, @When and @Then in one step definition?
1
vote
1answer
460 views

Can websites block selenium sendKeys() function?

I've been using selenium to autofill credit card information for certain websites. I use ChromeDriver and it had been working fine, but yesterday it seems like the website I had been using blocked ...
0
votes
1answer
394 views

Selenium OnClick identify button C#

How to identify this button in C#: <button class="reward_link_redeem_button_style" onclick="RedeemRPProduct('free_points_1')">REDEEM</button> <button class="...
0
votes
2answers
10k views

Selenium IE Webdriver showing “Only Local connection are allowed” in TestNG

I am trying to launch my application in IE browser in selenium using TestNG framework. But, after the IE browser is launched, the Eclipse console shows an error that "Only Local Connection are allowed"...
0
votes
1answer
209 views

Can we Verify Contents on the browser PDF print in Selenium Webdriver?

I need to verify PDF contents, when I click on pdf print button on web page, it displays PDF to print. How can I verify? Is it possible?
0
votes
1answer
51 views

Unable to locate a search suggestion element Selenium C#

Hi, I am trying to locate and click on the element that comes up in the search box when I type some name. Can someone please help me out to find & click on the name? I've use searching by XPath - ...
2
votes
2answers
951 views

Unable to enter text in windows dialog box in remote machine [Using Robot class]

In a test case, I need to enter a file path in the Windows dialog box which in turn uploads the file in the specific location. I used Robot class to handle this. Issue: It works seamlessly in local ...
2
votes
2answers
62 views

Link accessed thru selenium works in Chrome but not in IE?

I have encountered an issue for UI elements on IE browser. The link doesn’t respond to Selenium click commands. The same commands works fine on chrome browser. I have used Actions also, but same ...
0
votes
1answer
83 views

Unable to get text of an element

I have selenium Test case to validate contents of 2 web pages. The issue, I am facing is I'm not able to get anything from element.getText(). I'm using below code. driver1.get("https://some url"); ...
4
votes
2answers
6k views

How to move the slider at specific position in selenium

I have a slider with min range is 0 and max range is 17; if I want to move the slider to specific position say, @10, how to do? I am using offset but it is not moving to specific position. Below is ...
0
votes
2answers
292 views

How to parameterize locator in Selenium

I am new to selenium, And In my scenario I need to select a product for list of products in the page. And Product name to select is a test data. Now my query is,Can I create Object in Class level ( ...
0
votes
2answers
910 views

Selenium WebDriver statement is skipping after ajax call

Selenium WebDriver statement is skipping after ajax call for example if we use hotmail signup and want to check whether email is available or not I input the text and on lost focus hotmail return a ...
4
votes
2answers
2k views

Watir, Selenium::WebDriver for Chrome?

I've been using Watir for a month or so now and use profile = Selenium::WebDriver::Firefox::Profile.new profile.proxy = Selenium::WebDriver::Proxy.new :http=> proxy # proxy = "IP:Port" This ...
-1
votes
1answer
36 views

Email code modifications needed

Below is the email code to send Reports after execution and one method put is used, that's generating error. How to defined that put method to successful Test execution and test report sends ...
0
votes
1answer
48 views

Unable to find the correct xpath for input field?

Unable to locate the element. <div class="col-md-4"> <label class="radio-inline"> <input type="radio" name="routing_option" data-ng-model="generateRoutes" data-ng-value="'...
0
votes
1answer
43 views

Getting 'java.lang.NullPointerException' on executing test Cases

import org.openqa.selenium.WebDriver; import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations....
2
votes
2answers
628 views

Getting 'org.openqa.selenium.NoSuchElementException' - how to fix?

I'm getting this error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element Why am I getting this WebDriver exception and how can I fix it?
0
votes
4answers
1k views

Gecko Driver not navigating to URL

i am having a funny issue with my gecko driver. The browser loads however it does not redirect to the URL as stated below. Dim fireDriver As New FireFoxDriver(New FireFoxOptions() With {....
0
votes
1answer
2k views

Unable to create new service - Selenium + Jenkins

I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
4
votes
1answer
2k views

Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency

I have a class with dependent methods using the TestNG annotation dependsOnMethods The test runs fine 100% of the time if I simply run it as a TestNG Test from the package. When I include the test ...
0
votes
1answer
261 views

Clicking flipping image in selenium webdriver using C#

New to this platform I'm a beginner learning selenium webdriver with c# but I have a problem clicking on a flipping image, I identify the id but it won't click on it. I was told to use wait which ...
1
vote
1answer
375 views

Caused by: org.openqa.selenium.NoSuchWindowException: no such window is displayed in Geb

I have a written a Geb script for automation and I need to handle the Popup. but when switching the child window to parent window am getting a No Such Window Exception Below is my code: def ...
1
vote
1answer
2k views

How to capture error message from the toaster using selenium with java

I am searching for something specific, from a dropdown and want to capture the error message when no results are found. The message to be displayed from the toaster is "No Records Found"
2
votes
2answers
300 views

Close a one windowHandler at the Webview

I am writing scripts to automate a hybrid application. On my app I have two windowHandles. For example, after performing some actions when I execute below code I get "2" windows as the windowHandles ...
2
votes
2answers
452 views

How can I place on-screen messages with Chrome running under Selenium control?

I'd like to be able to see on-screen messages when my Chrome browser is running under Selenium, which will be useful to the human tester who occasionally monitors the execution manually. (The message ...
1
vote
1answer
105 views

Can I automate a Terminal Emulator with Selenium?

Please, could you tell me if it is possible to automate Terminal Emulators using Selenium, I need it to be in Selenium not in UFT
0
votes
1answer
411 views

How to run multiple test cases sequentially in NUnit Console Runner

I'm trying to run nunit3 exe through Jenkins but after building the project, it runs all available test cases parallely. They should run sequetially. I tried where clause in nunit but how it will ...
0
votes
4answers
762 views

Selenium Java :- [1553593587.996][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593587.997][WARNING]: screenshot failed, retrying

I am using Selenium 3.14.0 with Java to automate my tests. Until yesterday(25Mar 2018) , everything was up and running fine.In case of any failures , screenshots were taken and embedded successfully. ...
0
votes
1answer
321 views

org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been “select” but was “a”

package Practice; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; ...
1
vote
1answer
33 views

Javascript function not found when running UI tests

I'm using Selenium with Visual Studio 2017 on an ASP.NET MVC application. Driver is ChromeDriver 2.42.01. Everything works, however one of my tests involves clicking a div which is wrapped into an ...
1
vote
1answer
304 views

Selenium Python - Unable to find an element, get stale element exception when using element locator

Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation ...
0
votes
0answers
144 views

Selenium Error - The HTTP request to the remote WebDriver timed out after 60 seconds after clicking install button

while creating my test using c# and selenium i ran into a issue i haven't had before. the test basically opens the web site, logs in as admin, and within the admin page i than have to install a plugin ...
3
votes
1answer
167 views

Framework for Automation tests

I want to improve the quality process of the application I'm working on as a QA junior, I'm the only one in the team on this position and so I don't have a huge knowledge in terms of automation tests, ...
6
votes
5answers
348 views

Test automation | Are we focusing more on automation than testing?

Take a very specified example of web application testing with selenium: It seems obvious that (almost) everyone is suggesting using element ID as the best locator strategy, and that your GUI-...