Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
5,036
questions
0
votes
1
answer
1k
views
Selenium with C# "Element is no longer valid" exception being thrown when repeating steps
I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio.
This test is designed around validating search criteria text. In order for me to test ...
0
votes
2
answers
198
views
Java Selenium: Custom Assert Message for Multiple Checkbox
I'm working with an automated script for multiple checkboxes that has dependent permissions.
Given there are multiple checkboxes
Checkbox A
Checkbox B
Checkbox C
Checkbox D
Checkbox E
When I ...
3
votes
1
answer
1k
views
How to click an available time slot in customized UI calendar?
I have customized UI calendar attached in screenshot having date and time slots to book some test drive. actually the booked slot div contains some class and available slot contains some class name.
...
0
votes
1
answer
1k
views
Selenium with Chrome mobile emulator- can't make interactions
I'm starting to get frustrated with Chrome emulator:
Using JAVA + Selenium + TestNG I'm testing many of our web applications which runs on few browsers. On mobile browser we have a special design - ...
3
votes
7
answers
4k
views
CLEAR Method skipped while running the tests
I'm writing automation script for a page in which there is a text box. The scenario is as follows:
I click on the text box and enter a value which will throw error
I clear the text box and add valid ...
0
votes
4
answers
221
views
How can we run only selected testcases from extent.html report in selenium webdriver?
I'am running testng suite and then extent.html report is being generated.
Now I want to customize my report like; i should be able to select only failed testcases in my report and then should be able ...
3
votes
1
answer
555
views
Running Selenium not under a Testing Framework
I've been using Selenium for a while but with a slightly different scope (actually constraints). Instead of running a test for a particular site, I'm interested for instance in filling in a web form ...
-1
votes
0
answers
6
views
How to fix this error? assert names_requests == names_selenium AssertionError
import time
import pandas as pd
from bs4 import BeautifulSoup
import requests
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import ...
0
votes
2
answers
334
views
Issue in displaying webpage in IE11 in selenium webdriver
I am able to input the username, the password, and then click on the login button, but after clicking on the login button it displays nothing on webpage in IE11 but works fine with Chrome and Firefox.
...
0
votes
1
answer
63
views
JMeter Integration With Azure Pipeline and after execution of test getting as directory not found
As Part of Jmeter Integration With Azure Pipeline and after execution of test getting as below errors:
1.Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error ...
4
votes
1
answer
307
views
Getting and logging the selenium version used in a groovy project
I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console.
I tried this:
BuildInfo info = new BuildInfo();
def ...
0
votes
1
answer
419
views
Switching to webview fail in Android on Mac OS
I have a problem while switching from native view to webview in Android while testing on MAC OS. But the same scripts works fine in windows. In Mac it gives chrome not reachable as a webdriver ...
1
vote
1
answer
1k
views
How to add row elements in selenium?
I want to add today's count. I am new to selenium, and am not getting how to add using selenium. Can anyone suggest a solution?
This is my code:
package testpk;
import org.openqa.selenium.By; ...
0
votes
3
answers
3k
views
Iterate through multiple URLs in Selenium
I have to use multiple URLs in same script in Selenium (Java) and have to visit one at a time, perform some operations on the page take a screenshot at the end, and then move one to the next page and ...
0
votes
1
answer
61
views
Testing load of a highchart using python and selenium
I am writing a program that must screen some charts, the issue is that I do not know how much time a graph expends to load, it could be seconds or minutes.
How can I make an appropriate wait, that ...
-1
votes
0
answers
6
views
Click on a div that have the same class name than other divs with Selenium Python
greetings!
I'm new with Selenium. I would like to make click in a div which has the same class name than other divs. The class name is: answer wHGy3xn8heDaX4AOwXEmk _10bHElnyU5MzSMU2VKM4sp . I tried ...
0
votes
2
answers
641
views
Unable to get the correct value from the table using css selector in selenium
I am trying to get the value displayed against the Total using the below code:
driver.get("https://www.cricbuzz.com/live-cricket-scorecard/20137/sl-vs-eng-4th-odi-england-tour-of-sri-lanka-2018");
...
0
votes
2
answers
127
views
Does One single script can automate entire matches?
I am automating my windows application. My applications are sports related reporter software. In baseball reporter application i will do testing by the following way : I do enter the commentary from ...
0
votes
0
answers
11
views
What does this err means?Cannot inject @Test annotated Method [verifyLoginWithCorrectCredential] with [class java.lang.String, class java.lang.String]
Im new with selenium automation. I was just trying to automate a basic login page and I got this error.
I ve created 3 pages which is as follows:
BaseClass:
import org.testng.annotations.BeforeMethod;...
0
votes
1
answer
325
views
Python Selinium Javascript button download file
Website: https://myir.ird.govt.nz/eservices/home/?link=RWTEXREG
I'm attempting to download this file. It looks like the request is handled server side so there isn't any download link per se.
I've ...
-1
votes
0
answers
8
views
Finding Open Source Projects
This is bit of general question, How can SQA engineer find good open source projects for contribution. Actually, to be honest I want to know searching process and qualities of projects you usually see ...
0
votes
2
answers
352
views
Testing multiple browser configurations via Selenium WebDriver
When covering cross-browser testing using Selenium WebDriver, how do you provide the browser and version information to the tool (e.g. BrowserStack, Sauce Labs)? For example, you're wanting to execute ...
0
votes
2
answers
453
views
How do I click on an element available in a specific row where dynamic row is added?
In the below pic, I need to click on the icon in a row which is newly added and column1 value is stored as global variables.
Have used the below code, unable to find a solution.
WebElement ...
-1
votes
1
answer
29
views
JMeter Integration With Azure Pipeline and after execution of test got as File size (11956969445) is greater than possible Buffer: 2147483647 bytes
A part of JMeter Integration with Azure Pipeline and after execution of test in Azure Pipeline got as File size (11956969445) is greater than possible Buffer: 2147483647 bytes.
Is it possible to us to ...
3
votes
2
answers
1k
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-...
0
votes
0
answers
6
views
Cucumber selenium testng getting error in testrunner
package Runner;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import io....
0
votes
2
answers
94
views
How to use java classes of one Selenium project into Another project in Eclipse?
I have around 10 Selenium/Java projects in Eclipse IDE and there is "utils" package and Automation framework classes that i manually copied to all projects and all those have different ...
2
votes
1
answer
67
views
How to implement seleniums LoadableComponent with a fluent API?
How do we implement LoadableComponent, when we have a fluent API, lets create a basic set of classes, shown below:
public class LoginPage {
// @FindBy locators
public DashboardPage login(...
0
votes
3
answers
3k
views
How to get Embed link from Openload API after Remote upload? Selenium & Python
im trying to use Openloads API in python, i can do a remote upload like this:
ol_url = driver.current_url
resp = ol.remote_upload(ol_url)
file_id = resp.get('id')
Now i have a file uploaded in ...
0
votes
1
answer
24
views
Using Selenium, how to run test scripts on a certain page of an application without using a login page
I am working on an application that whenever I call a page from the menu, the URL does not change. I'm new to Selenium and am creating automation test scripts to perform test cases.
But, for each test ...
0
votes
0
answers
11
views
Regarding Google Playstore Automation
I have this project where I have to automate the Play Store using Java and Appium.
Problem:
The problem I am facing is, that it seems like the buttons in the Play Store are changing their id's ...
3
votes
1
answer
690
views
How do I access fields within Braintree's Hosted Fields' iframes using selenium
On my application payment gateway is Braintree, I need to automate it and face some difficulties when I am automating it, the major problem is I cannot send credit card details using xpath, I research ...
0
votes
1
answer
674
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
2
answers
882
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 ...
0
votes
1
answer
41
views
Multiple verifications under one test - if one of the verification fails how to continue to verify the remaining
I'm working with selenium/Java /TestNG Maven project.
Main function calls multiple validation from java class. If any one of the verification fails, the remaining are skipped.
From the below code if,
...
4
votes
2
answers
822
views
How to add an assert to an if ..else condition using Phpunit and selenium webdriver
I'm working on test automation for a big project and I'm using Phpunit and as a server I'm using Selenium WebDriver.
In the source code I'm using asserts like :
$this->assertContains('Project Title'...
0
votes
1
answer
30
views
Could not able to click the link from the container
enter image description here
hi all
thanks for reading my question.
I tried to automate some of my work.
I tried to get the path of Add button using xpath finder
I found three links below. I tried to ...
0
votes
1
answer
3k
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
3
answers
615
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
5
answers
1k
views
Verify element is visible using selenium and java
I am trying to identify a specific element and perform some actions. This specific element is not available in every element I am looping.
Below is the element I'm trying to catch.
<span class=&...
0
votes
0
answers
17
views
Clicking button with Selenium produces no response
I am trying to automate the clicking of the "Sort by: Top picks for long stays" button at the top of the following page on Booking.com. My code is as follows:
sorting_button = WebDriverWait(...
0
votes
1
answer
769
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 ...
0
votes
2
answers
103
views
How to include automation framework jar file dependency in my maven pom.xml?
I want to include one .jar file which has classes of my core automation framework. I created a "lib" folder in my selenium project and then gave its path in the pom.xml dependency. This Jar ...
0
votes
0
answers
143
views
How to connect to a Anti-Detect browser (Incogniton) using selenium java
I want to connect to a browser session of this specific anti-detect browser called Incogniton.
It does support Selenium browser automation, but it only supports Python. I don't know anything about ...
0
votes
1
answer
964
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
2
answers
2k
views
Automating a desktop app based on Chromium Embedded Framework using Selenium
Background:
At work we are passing the --remote-debugging-port=9555 parameter to a CEF based desktop app and launching it using Runtime.getRuntime.exec("path to app"). Then, using selenium, we open an ...
1
vote
2
answers
3k
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....
1
vote
1
answer
146
views
Azure Access to Internal Selenium Server
We are currently testing out DevOps but one thing that I can't do is have MSTest hit our internal server (which is housed in Azure) that contains selenium and such.
DevOps of course is external.
I am ...