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
25 views

How to install chrome-webdriver on GitLab CI/CD

I am trying to do some tests using GitLab CI/CD and Robot Framework, I have this simple .robot file: *** Settings *** # Declare Libraries Library SeleniumLibrary # Declare Suite Setup and Teardown ...
0
votes
0answers
36 views

Large scale selenium automation project fails when multiple suites are running all together

I am working in a large scale project automation with Selenium where multiple test suites are available. When a single suite is running, it works fine. But when all suites are running all together it ...
1
vote
1answer
14 views

how we write scrolling code in appium java like first when it open application and now it scroll down in footer and then it comes upside again

how we write scrolling code in appium java like first when it open application and now it scrolls down in footer and then it comes upside again. base.java ; import java.io.File; import java.net....
0
votes
2answers
300 views

Getting nullpointer exception for 2nd test case working fine for login

Driver set to null for 2nd test case, working fine for login. Driver class: public class Driver { private static WebDriver driver;; /** * * @return * @throws Exception */ public static ...
4
votes
2answers
272 views

How to stop re-entering same code for the login session for every test

I'm new with Selenium. I'm using same code for the login session, when I'm writing test case for every page. How can I stop re-entering the same code? Is there any other way to reuse code without ...
0
votes
1answer
18 views

In selenium Webdriver: For windows, we use Sikuli to interact with windows popup, similar way, what is there for Linux?

In selenium Webdriver: For windows, we use Sikuli to interact with the windows popup. In a similar way, what is there for Linux?
1
vote
1answer
556 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
1answer
76 views

Azure Access to Internal Selenium Server

Asking those network people smarter than me....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 ...
0
votes
2answers
111 views

WebdriverIO, IE11 window launches but errors in terminal: Request failed due to no such window, Currently focused window has been closed

I am pretty new to WDIO and javascript, but am trying to get WebdriverIO v6 working with IE11. This is important since we make software for the medical industry who only seem to use IE11 despite it ...
0
votes
2answers
448 views

How to perform click on an element using selenium for which I am getting staleState Exception

Problem: There are couple of radio buttons with the same ID and I need to perform click on these. The first radio button gets the click where the second one is getting StaleElementReferenceException. ...
0
votes
1answer
260 views

unable to run program via eclipse

I am getting error whenever running java program via selenium. my code : package mTash; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome....
0
votes
4answers
2k views

Not able to click on menu using Selenium WebDriver Java

I am not able click on the specific element, which is in the image format. I have tried using available locators i.e id and image using XPath and remaining locators are same for all remaining menus. ...
0
votes
1answer
34 views

I am unable to login

import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class testClass { public static ...
1
vote
1answer
1k 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....
7
votes
2answers
725 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 ...
0
votes
2answers
1k views

Selenium - NoSuchElementException

Here is my HTML code, <div class="input-group-btn search-panel dropdown open"> <input type="search" id="footerSearch" class="form-control search-...
0
votes
1answer
16 views

How to determine what thread a test is running in

I want to run my tests in parallel, but some of my feature files require the server to be in different (incompatible) states. This is because the server behaves differently when it is in different ...
0
votes
1answer
40 views

Python with selenium: unable to locate element which really exists

I've been trying to fill input: <input id="PASSFIELD1" class="logField" type="password" onkeyup="next(this, event);" maxlength="1" autocomplete=&...
0
votes
3answers
45 views

Is it possible to open a mobile browser with Selenium WebDriver?

I know it is possible to open a desktop web browser with Selenium WeDriver. The following lines written in Java allows doing so: WebDriver webDriverChrome = new ChromeDriver(); webDriverChrome.get(...
0
votes
3answers
29 views

How to log testing results to xlsx (Excel) file with Selenium WebDriver?

I have a certain test automation script written in Java with Selenium WebDriver. Currently, I log the testing results to the console and manually copy them to the required document. Is there a way I ...
2
votes
2answers
1k views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and ...
0
votes
4answers
37 views

how to locate a href link inside anchor tag in selenium java?

[![enter image description here][1]][1]
2
votes
3answers
3k views

fetching the text from anchor tag

<a href="https://www.xyz.com/Vertical-Striped-short-Slve-pant-with-Chest-Pocket-dsdjj.html">Vertical-Striped-short-Slve-pant-with-Chest-Pocket-dsdjj <br><b>Select Size:</b>&...
3
votes
2answers
660 views

How to find out which languages are supported by a website?

I am facing a problem while doing localization testing using selenium web driver and java, how to find out the languages supported by a web page? What I want to achieve is following: Enter the URL ...
0
votes
2answers
24 views

How to select two and three check box in a table

How to select random checkbox in a table because checkbox id, type , name are same then how to get random checkbox select and value is different. http://prntscr.com/106nuzd
0
votes
2answers
90 views

Element located when put in a single test case but not located when put in separate test case

I am in a weird situation where I found that my element is located when I wrote in a single test case. But as soon as I put that element in a separate test case, Unable to locate element Exception is ...
0
votes
1answer
243 views

Unable to execute single tc, login then run other application features, right now its running as a suite

I have to execute my test cases as a single as well as a suite, right now its running as a suite but not as a single test case in selenium webdriver: Below is my test which are calling methods present ...
1
vote
1answer
64 views

Robotframework/Selenium/IEDriver - Tests fails at times with [object error] error message

I am using robotframework to perform web automation using IE11 and seleniumlibrary. It runs on windows 10 workstations. I use IE driver 3.14.0 32-bit as it allows to run scripts when screen is locked. ...
0
votes
1answer
24 views

How to go through all pages at a certain domain with Selenium WebDriver?

I need to verify a certain thing on multiple pages on a certain site. The thing is it is quite tedious to manually add links to each page for testing to a script. Is there a way the Selenium WebDriver ...
1
vote
1answer
74 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: ...
0
votes
1answer
91 views

Selenium - Web driver code is not working after restarting the system

I installed eclipse to work with Selenium, my code was running successfully until I restarted my system. After restarting the system and running the existing code which was save before restarting the ...
12
votes
9answers
14k views

Whether to choose Selenium over Watir or Lightweight Test Automation when testing web applications created using C Sharp?

I am currently researching testing frameworks to test C Sharp developed web applications. I have been leaning more towards the use of Selenium over Watir or Lightweight Test Automation but hesitant ...
-1
votes
1answer
40 views

Selenium Getting Hover Textbox Text

I am working in eclipse writing selenium scripts using Java. I am using the chrome web driver. I have a hyper text link that when I put my mouse over it hover text box appears. I need to return that ...
0
votes
3answers
56 views

Issues creating custom xpaths

I've became lost in the world of xpaths, so got an advice to create custom xpath, instead of coping this one, for example "/html/body/div[1]/div[4]/div[1]/div[7]/div/div[2]/div[3]/div/form/div[2]/...
-1
votes
2answers
85 views

Multiple browser support

Currently, our automation suite runs on chrome (has been designed for chrome). We used cucumber with Java and Selenium. We are trying to make the current automation suite multi-browser compatible. The ...
6
votes
2answers
3k views

How to run tests in parallel using Robot Framework Maven plugin?

I'm using the Robot Framework Maven plugin to execute my Robot Framework scripts. I'm using this plugin because some of my keywords are implemented in Java and packaged inside an external library. I ...
1
vote
1answer
83 views

How to select this dropdown with Selenium

Here is the HTML code: <select id="faculty_id" name="faculty_id[]" class="form-control select-select2" multiple="" tabindex="-1" style="...
0
votes
0answers
7 views

How can I check the error in the incoming alert message in Android mobile test?

I'm running an Android mobile test with C#. The transaction I want to do is a linked transaction and I want to have it checked. After I press the Continue button, I get an alert message. I want to ...
0
votes
1answer
467 views

Selenium for Internet explorer on Jenkins

Recently, my tests started failing. I'm testing on IE11(company policy) on a jenkins windows slave. My tests all hang on the "This is the initial start page" if I'm not connected to the server. If I ...
2
votes
3answers
13k views

Running a Cucumber scenario multiple times as long as a new Test Data set is present in excel

I have a scenario where i need to execute a scenario in a feature file multiple times as long as the Test Data is present in the Excel. Each row of the Excel has a different set of test data. I want ...
1
vote
1answer
72 views

@BeforeMethod/@AfterMethod(onlyForGroups) methods did not execute, if a test method belonging to this group is executed

I am running a test suite with the test methods belonging to a certain groups. Below is the Selenium code: public class BaseClass { @BeforeMethod(onlyForGroups = {"P1"}) public void ...
0
votes
3answers
32 views

Selecting an option from a dropdown in website with multiple dropdowns using Python/Selenium

I am attempting to select an option form a dropdown menu using selenium in python but kept getting an error that says "Message: Could not locate element with visible text: Active - Milestone VUL-...
0
votes
2answers
184 views

How to open browser windows one by one with Jmeter selenium

I was using jmeter with jp@gc - WebDriver Sampler plugin on Chrome driver. When I set thread count to 100 it will open 100 browsers. Is there any way to open the browser 1 after another? Below is ...
71
votes
14answers
363k views

How to download a file using Selenium's WebDriver?

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = self.browser....
1
vote
5answers
8k 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/...
0
votes
1answer
997 views

Methods to setup parallel test execution in NUnit with Selenium WebDriver C#

For true parallel execution of Selenium tests in NUnit, does the setup of the webdriver object need to be within the test method itself? Or is there a better way? Previously, for parallel execution ...
1
vote
1answer
72 views

Test all checkbox combinations using Protractor

In my Angular page there are 15 checkboxes and a label that when I select on each checkbox individually, a result will appear in the label. Plus when a checkbox click with a combination with others, ...
0
votes
1answer
4k views

PROTRACTOR: Right click on link and open in NEW TAB

TestCase: Right click on link element and open in NEW TAB or NEW WINDOW. I could able to right click on the element using the below code. But not sure how to select the option of "OPEN Link in ...
0
votes
0answers
27 views

RSA Soft Token Automation

Can we automate RSA Soft Token to achieve end to end automation. I have automated using Input Simulator by simulating the keyboard events. It is working fine when we run the scripts on local machine, ...
1
vote
2answers
122 views

Selenium + Java: How to automate custom file upload/attach field?

I'm trying to automate a custom file upload field with SELENIUM and JAVA on UBUNTU. Let's take Yahoo mail as an example. The flow to automate would be to compose an email, attach a file to it and then ...

1
2 3 4 5
94