Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
558
questions with no upvoted or accepted answers
1
vote
0
answers
141
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 ...
1
vote
0
answers
359
views
Automate Microsoft’s authentication needing a certificate using selenium in a pipeline?
I am trying to run some scripts in a website using webdriverio, this site uses Microsoft’s login authentication in order to access the website, in my local it usually asks me to login not only with ...
1
vote
0
answers
143
views
How to get the AJAX request using the Selenium Webdriver in jmeter?
I am executing my selenium script using Selenium/WebDriver sampler and after the execution of multiple threads, the reporting is fine i.e. showing for each User and URL but I want to also show the ...
1
vote
0
answers
35
views
Not able to click button on wordpress form
My HTML
<button type="button" class="button media-button button-primary button-large
media-button-select">Select File</button>
My Selenium Java code
Thread.sleep(1000);
...
1
vote
0
answers
39
views
Integrating Firebase deployment and github repo with selenium tests
I have been writing UI tests with Selenium for my friend's web app that's hosted on Google's Firebase.
I was wondering if there's any way to integrate my existing test repository (maven project on ...
1
vote
0
answers
460
views
There is a way to identify font type in an Android app? (Python, Appium)
Here is the deal: i'm testing an android app and the client wants us to test font types, sizes and colors.
Using Appium's explorer i'm able to see the objects properties (such us: text, enabled, etc) ...
1
vote
0
answers
57
views
Could I improve my code by opening multiple tabs?
I'm trying to scrape information from an array of links using selenium. Each of them take ~2 seconds to scrape, and it adds up to quite a while.
Is it possible / worth trying to open the links in ...
1
vote
0
answers
291
views
Sort rows in a dragable table by order selenium python
I have a html
Link to html
http://threedonthemap.s3-website.ap-south-1.amazonaws.com/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name=...
1
vote
0
answers
354
views
How to automate Handsontable using Selenium WebDriver (Java)
I want to automate the Handontable using Selenium WebDriver using Java. Basically, I want to enter data in the handontable using selenium(Java).
Is there any way available to enter data in the table. ...
1
vote
1
answer
2k
views
How to select a dropdown value in Selenium WebDriver using Java appium?
I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my ...
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
3
answers
12k
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
vote
3
answers
1k
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
1
answer
136
views
IE 11 auto accepts the alert pop up
So I am on an edit page and when I click the cancel button to stay on the edit page the IE driver automatically accepts the leave page in alert pop up. I even added the IE capabilities saying:
...
1
vote
0
answers
287
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(...
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
0
answers
94
views
Issue with parallel testing in pytest
So I have two test cases in a map. From command prompt I type "pytest -n 2" then hit Enter. Instead of opening two browsers and execute them in parallel, pytest is opening 4 browsers, but only two of ...
1
vote
1
answer
788
views
How can I enable variations in Chrome from chromedriver options?
How can I enable variations in Chrome from chromedriver options?
Hello, I'm facing a problem with Chrome where when I run an automated UI test with chromedriver, there's issues showing up (such as ...
1
vote
3
answers
536
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
0
answers
488
views
How can i use an existing existing chrome browser instance in selenium C#
How do I use an existing chrome browser in selenium C# ?
Currently I have the following but it always creates a new window
SessionId sessionId = new SessionId("");
var driver = new phantomJSDriver();...
1
vote
0
answers
78
views
Open a clickable link on a web page and take the screenshot at the same time
I'm new to Chrome headless and I have a problem.
I want to randomly select two links from a web page on the page being viewed and open them at the same time.
Indeed my goal is to be able to have the ...
1
vote
1
answer
138
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 ...
1
vote
0
answers
608
views
JMeter Selenium Browser not opening up new tab
I am executing my Jmeter test with Selenium and once I click on an Analysis link, it ideally opens up in a new tab on the same browser window. However, If I am click on the link using Jmeter Selenium, ...
1
vote
2
answers
215
views
Strange drop down automation problem - multiple select
I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
1
vote
3
answers
6k
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 ...
1
vote
0
answers
290
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//...
1
vote
0
answers
2k
views
Selenium headless browser - setting default page zoom
I have a problem with browser zoom in Google Chrome and FireFox.
I have one button that is overlapped by another element (my page always have 100% zoom and is very bad for me because a lot of elements ...
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; ...
1
vote
0
answers
250
views
How to launch 10 browser instances using Selenium Grid in the same machine
I'm trying to launch 10 browser instances (IE) in a virtual machine and execute same script 10 times parallelly on those browsers. I updated the IE node to have
maxInstances=10" -maxSession 10
and ...
1
vote
0
answers
30
views
How to print the webservice(jqurey) hit on the console for search functionality
Open a website, press F12 go to network option and enable preserve log
now type the work you want to search eg:dogs
we can see the service "http://search.test.com/search........."
here i want the ...
1
vote
3
answers
3k
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, ...
1
vote
2
answers
1k
views
Click getting to lower item (under dropdown) instead of dropdown in Selenium
I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it.
Before the ...
1
vote
0
answers
70
views
Changed Selenium Framework
I am using this Selenium Set-Up in an older Project. (later called "Old-Project")
Now I want to migrate this test to a Project with this Set-Up: (later called "New-Project)
I am using a code sample ...
1
vote
1
answer
4k
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;
...
1
vote
0
answers
269
views
Running selenium tests parallel on different website using grid
We want to setup a Selenium Docker Hub Node Environment.I have successfully set it up using following:
docker run -d -p 4444:4444 --net inpronet --name selenium-hub selenium/hub:3.11.0-dysprosium
...
1
vote
0
answers
826
views
Attach Existing browser session in SeleniumLibrary RobotFramework
I have an LDAP alert box that pops up as soon as the browser is opened.
I am Using Robotframework with the seleniumlibrary for my automation scripts.The issue is that the execution of the script ...
1
vote
0
answers
53
views
Facing Timeout issue while earlier this code was working
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;
public class Test1 {
...
1
vote
0
answers
121
views
Simultaneous start of multiple 'test suites' (all clones) in Selenium IDE, on as many browsers?
Scenario:
Multiple Firefox browsers with Selenium IDE addon installed, residing in as many VMs in the Host, all containing the same Source i.e. the exact same commands in their respective S-IDE window....
1
vote
4
answers
3k
views
Python Selenium unable to login by clicking on Button inside a form
website:https://www.etoro.com/login
<button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button>
I am trying ...
1
vote
0
answers
61
views
Code Coverage using Scala Automation Testing for JS web application
I'm looking if there's an existing application or tool that will run code coverage based on a scala implemented automation suite running against a Javascript web application.
Our automation framework ...
1
vote
0
answers
137
views
Unable to call custom annotation in selenium test
Unable to call custom annotation in selenium test i am writing a Apache poi selenium junit test - To avoid @RunWith i have tried myown annotation
public class MyTest extends OtherTest {
String a ;...
1
vote
2
answers
1k
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 ...
1
vote
0
answers
620
views
Exception in thread "main" org.openqa.selenium.WebDriverException: Value cannot be null. Help needed
When trying to invoke winium driver for my file upload from local into web, it's showing below error,
Exception in thread "main" org.openqa.selenium.WebDriverException: Value cannot be null.
Further ...
1
vote
2
answers
4k
views
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with css selector ==
When I am trying to run the below mentioned Selenium web driver code in IE 11 browser, I get below error:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable ...
1
vote
3
answers
8k
views
Python Selenium Find Button
I have a Website were I want to click a button, but I can't find in the button in the HTML script, what I have to write in my Python script?
Later I want to have something like
driver....
1
vote
0
answers
139
views
How to get actual element position from webpage during css transition in python?
I am trying to speed up a test by not waiting for a css transition to happen, but rather have a WebDriverWait handle the task for me. Currently it looks to me that lambda elem: elem.location["x"] ...
1
vote
7
answers
11k
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
0
answers
41
views
What software testing tools can be used to test the media content like Video content loading in the web page
What software testing tools can be used to test the media content like Video content loading in the web page.
Mainly for an e-learning content like of Udemy's.
Video-playback and loading needs to ...
1
vote
0
answers
1k
views
How to handle password alert pop up (Windows Security) on IE?
The pop up is not the traditional alert. It looks like this pop up.
Basically Windows Authentication system.
I have tried the classical alert handling technique (alert.sendKeys())
and the one using ...
1
vote
2
answers
6k
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.
...