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
2answers
30 views

I have a dynamic xpath which is based on 4 values, if I am using OR condition the xpath looks huge, any other way to handle this?

_OPTION_1 = "Average" _OPTION_2 = "M" _OPTION_3 = "Casual" _OPTION_4 = "D" _WIDTH_VALUE_XPATH = f"//mat-option/span[contains(text(),'{...
-3
votes
1answer
46 views

How can i repeat this script many times [closed]

driver.find_element_by_class_name("submit").click() time.sleep(2.5) driver.find_element_by_xpath("//input[@value='Continue >>']").click() time.sleep(2.5) driver....
1
vote
1answer
20 views

Asynchronous content is not found after button click in Selenium Grid

I have created a script in Selenium IDE that goes to this page: https://www.lexology.com/instructcounsel/find and presses the 'Example' button and then asserts that results are displayed for the ...
0
votes
0answers
41 views

Python selenium - How to loop to register Mega.nz accounts with mails.json (Protonmail)

Everything is fine, but when the script ends it does not loop with the json information. It stays in the Protonmail mailbox and the script no longer works. Try to make the browser completely close the ...
1
vote
1answer
45 views

The .App path is not recognised in desired capabilities in my Appium setup

I have set up my desired capabilities on Appium. See below. { "platformName": "iOS", "deviceName": "iPhone11", "automationName": "XCUITest&...
-2
votes
1answer
22 views

Selenium Webdriver: HOW TO CLICK IN A BUTTON WITHIN A CLASS OVER OTHER CLASS?

I've been trying to click in a button and haven't success. Want to acess line 130 Começa a new game It has two class="responsive-lg" and the I Want is the second. I need help to overcame ...
1
vote
1answer
40 views

Selenium closing the brower alone after finishing all the function [closed]

I'm pretty new in programming so I might be an easy question but I don't understand why the browsers opened by Selenium closes at the end of the code : def login(Email, Password): Driver = ...
3
votes
1answer
26 views

How to scroll an element to the center of the screen

driver.get( "http://www.uitestingplayground.com/scrollbars") time.sleep(10) driver.execute_script( "arguments[0].scrollIntoView()", driver.find_element_by_id("...
0
votes
1answer
199 views

how to click on the dropdown list items using selenium python without select tag?

I need to click on the dropdown list of items that are hidden and only the list visible once we click on the particular search box. HTML TAG: <div class="main-search_suggestions suggestions-...
1
vote
2answers
27 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-...
1
vote
1answer
55 views

How to get the count of all the test cases in my Maven Selenium test project

At the moment I'm working on a legacy Maven Selenium test project. It will take around 10 hours to run the entire test suite. After 10 hours from the IntelliJ I can get the total number of test cases ...
0
votes
0answers
40 views

Python / Selenium is starting an old script before running new script. Do anybody can solve this issue?

I have a problem with Selenium(Python). Does Somebody know a solution? THE PROBLEM If I run a new Script the browser opens and runs an old script, then closes and opens again, and then runs the new ...
0
votes
1answer
32 views

how to integrate testrail with selenium

Hi everyone as I am just started to work in testrail and I want to integrate my testrail with selenium using Eclipse What I want to do? I want to run my test case in selenium and if its pass then my ...
0
votes
1answer
82 views

How to implement proxy server setting in selenium webdriver using java

I have tried both the below code but unable to set proxy Proxy proxy = new Proxy(); proxy.setHttpProxy("socks5://localhost:8080"); ChromeOptions options = new ChromeOptions(); ...
1
vote
2answers
78 views

How to Deal With Changing Elements In XPath?

My Code is: bar = browser.find_element_by_xpath("//*[@id='ember26']/input") But it changes every time I login. I can login with my codes but inside the LinkedIn, search bar XPath changes, ...
0
votes
0answers
16 views

ExtJS. How to select options from <Input>, if options is in downside DOM in div's? Selenide

I have an enterprise project. Dropdown menu's made so: There's field <input type="hidden" name="Some_id" id="Some_id" value="6"> <input type="...
1
vote
1answer
32 views

Unable to select the text from the drop down

i tried to identify the text from the drop down but it displays the error. Select agentName1 = new Select(driver.findElement(By.id("XYZ"))); agentName1.selectByVisibleText("ABC"); ...
0
votes
0answers
42 views

Kotlin Selenium lateinit List of WebElements not being initialized

I'm building a selenium test using a POM, and I have a List of Webelements (companyNames in SelectAccountPage) that keeps throwing a UninitializedPropertyAccessException. Here's the Page Object class ...
0
votes
2answers
29 views

GUI / report for Selenium / Maven test failures

I've got testers starting to work with Selenium / Maven / Java / IntelliJ Idea. Does anyone know if a way I can generate a GUI report of a test's results after it has been complete? Only need to ...
1
vote
1answer
168 views

No such element: Unable to locate element

I am trying to automate a payment using selenium java via a modal. I am able to enter the CC details however when I exit the iframe and try to click the pay button I get the following error message ...
0
votes
1answer
131 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) ....
1
vote
1answer
35 views

List issues facing

I am creating script for list but it is all four tab run and when last tab found it's popup it automatically script fails. How to put condition if it is continuously run. Please see my code. http://...
1
vote
1answer
102 views

org.openqa.selenium.ElementNotInteractableException: element not interactable not getting why this error coming

Test Code @Test (priority=6) public void Testcase6() throws InterruptedException { driver.get("https://test.ninjafocus.com/"); driver.manage()....
4
votes
1answer
56 views

Which is the correct page object model design and why?

Issue: The target webpage has many buttons in the page and adding separate abstraction for each method like , click button1 , button2 etc feels like unnecessary and just creates additional lines of ...
0
votes
1answer
24 views

safaridriver can't be enabled

I'm trying to use the safaridriver but every time I try to enable it I get a segmentation fault. I already tried to restart my laptop but the problems stays. admin@Bens-Air ~ % safaridriver --enable ...
1
vote
1answer
39 views

Is it possible to include Internet Explorer 5 or 6 in Selenium Grid?

Based on this question here, I was wondering if you can also include Internet Explorer 5/6 in Selenium Grid? How can Internet Explorer 5 be emulated in 2020? I don't think this is possible either, but ...
0
votes
1answer
36 views

How can I count how many times this selenium script has been run in Python?

for example, I run this script 200 times and now I want to run more time. then I count every time and show me in console import time from selenium import webdriver start_time = time.time() driver = ...
1
vote
1answer
39 views

Is there a way to make Selenium use cookies to autologin?

I don't want to have to make the script log in every time. Is there to stop the web driver opening a "fresh" browser and instead make it open my standard version/load cookies so it auto-logs ...
0
votes
0answers
13 views

Need to run single test case parallel in simultaneously manner

I'm running one test with 60 different data sets coming from a data provider. My testing XML file is printed below where I'm executing my test in parallel. My problem is that after executing my first ...
1
vote
1answer
38 views

Unable to find Javadoc location for selenium version 3.141.59 jar for java version

I installed Selnium for Java version 3.141.59. I am using Eclipse-Neon edition .I was trying to attach javadoc location to the client-combined-3.141.59 jar.can u please confirm if the javadoc URL ...
1
vote
2answers
28 views

Cannot select html td link button by XPath with Webdriver

Here is my element <td> <div class="linkButton" onclick="window.open('../../Report/Reports/ViewReport.aspx?reportName=Revenue.Report','Report1','scrollbars=1,resizable=yes,...
0
votes
3answers
70 views

How to scrape text from html using Selenium or Beautiful Soup

here is the html <div data-v-026c45df="" class="col text-undefined">$682.0</div> I need the '$682.0'. I have tried : start_aum = driver.find_element_by_class_name('col ...
1
vote
1answer
22 views

How can we handle SeekBar in Appium?

I wrote a code for SeekBar. I wanted to move the SeekBar but it did not move. When I run the code it gives me values in the console but did not move. Kindly check my code and tell me what I am missing ...
1
vote
2answers
52 views

How to select an element using text() in Selenium with Python?

I am not able to select "Event" in following code using text(). <a class="atg-p-8" href="https://www.abc.com"> <span class="atg-mr-12">.....
1
vote
1answer
33 views

How to verify the page load opened in a new tab with a redirection?

I am testing a website that redirects the user to another website for buying stuff. Once I click on the Buy Now button a new browser tab opens and another website is launched displaying the product. ...
1
vote
1answer
30 views

JavascriptExecutor.executeScript(“arguments[”+index+“].click();”, elementName) does not work

I'm using IntelliJ IDEA 2020.1 Community Edition for automated testing. The issue seems simple enough. I have a Search drop-down menu which also contains a Search menu option (among other options). ...
0
votes
1answer
710 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 ...
1
vote
2answers
148 views

How can we write scrolling code in Appium with Java?

How can we write scrolling code in Appium with Java? Here is what I want to do, Open the application. Scroll down to the footer. Scroll back up. This is the code that I have written: base.java ; ...
0
votes
1answer
22 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?
2
votes
0answers
63 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 ...
0
votes
1answer
41 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 ...
0
votes
2answers
33 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
4answers
153 views

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

[![enter image description here][1]][1]
0
votes
3answers
120 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 ...
1
vote
3answers
219 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
1answer
93 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 ...
0
votes
0answers
9 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 ...
2
votes
1answer
107 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="...
1
vote
1answer
93 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 ...
0
votes
0answers
38 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
2
3 4 5
96