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
0answers
4 views

Selenium Error Can not connect to the Service Chrome Driver on CentOS 7 server

I have a CentOS 7 OS install on my server. I am trying to deploy my selenium bot but I got this error. selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /root/.wdm/...
-1
votes
0answers
9 views

What are some good resources to learn Apache POI? [closed]

I need to use poi to read testdata.xlsx excel. What are some authentic tutorials to learn it. Also, how to create a Excel utility class and create an object of it in test class and then use methods.
1
vote
2answers
38 views

Should a newbie in Test Automation learn the core underlying framework?

I am a complete beginner in Test Automation. I am trying to learn Selenium Webdriver with Java, TestNG, Cucumber(BDD) framework, Build tools like Maven. Now, the problem is that there is an existing ...
0
votes
1answer
12 views

2 times drop-down menu selection in a row with RSelenium

I am trying to scrape this website. I got a problem with text fields because text fields and drop-down menus combined. The site does not allow to enter the names of cities directly. For example, I ...
0
votes
1answer
16 views

Selenium driver for web app testing on chrome in incognito windows

So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
-1
votes
1answer
22 views

Can we execute our test manually on one device and replay the same tests on multiple devices?

I want to test a shopping website, a portal where users can view/filter products (clothes, shoes, etc) the actual buying happens somewhere else, it's kind of an aggregator. [The website is UI heavy - ...
0
votes
1answer
24 views

To click on an element which contains class and alt in selenium python

To click on an element which contains class and alt in selenium python. A webpage contains certain folders with unique name, I want to click on folder by specifying their name or title. Below is the ...
0
votes
0answers
9 views

SyntaxError: Failed to execute 'evaluate' on 'Document [closed]

try { Thread.sleep(35000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } String actualUrl="https:/...
1
vote
2answers
81 views

I was asked this question in interview on test automation [closed]

If there are two test cases and the first one failed, in that case I don't want to stop the execution. What needs to be added? Without using TestNG annotations, try/catch, using selenium only.
0
votes
1answer
32 views

The relative xpath for the 2nd button of two identical buttons - selenium

i need to identify the relative xpath for the 2nd button highlighted in the image Can someone help me //*contains(@class,'fa fa-clock-o') I used this. It identifies the first button again.
1
vote
1answer
34 views

How can i call classes under other different class?

This might be a very strange question, but I am not even sure how to title this question. I am quite new to C# and Selenium. I have done some coding on it and I'm quite comfortable creating a (very ...
0
votes
1answer
29 views

how to get the values of “term_from” and “term_to” using selenium

How can i get the value of term_from and term_to from this html table.
-1
votes
0answers
27 views

org.openqa.selenium.NoSuchElementException: Can't locate an element by this strategy: By.chained

Using Appium client io.appium java-client 7.0.0 The code is working fine if I use @FindBy(id = "//com.xxxx.xxxx:id/emailSignInTextInputEditText"...
1
vote
2answers
54 views

Send_keys in selenium doesn't activate the submit button but manual entering does

I'm struggling with a phone number field that I fill using send_keys function in selenium. Actually, the submit button is supposed to be enabled after filling out the phone number, but it doesn't ...
1
vote
2answers
47 views

SELENIUM - How to count IWebElement in IList<IWebElement> and get the position in the list

I have a problem and I don't know how to solve that... I have 5 exactly the same elements on the page (same div, same class, no id, same inner text). So I can build the XPath - where Selenium returns ...
3
votes
1answer
54 views

How do I create a BaseClass that adds logging messages?

I am using serenity BDD for my automation testing and Page Object Model for my framework. I have created a BasePage class which will be inherited by all the other Pages. I want to minimize the logging ...
1
vote
1answer
30 views

Click on table row if text String is found

I have this Angular component implemented as a table: <div _ngcontent-nyg-c4="" fxlayout="column" class="feature-content" id="content.rowify" style="...
1
vote
1answer
58 views

How to find the button name and click it using VBA and Selenium?

I'm trying to go to a LinkedIn website. I'm using Selenium and for some reason it does not recognize my saved user name and password so every time I open up a LinkedIn session, it is prompting me for ...
1
vote
1answer
28 views

How to check for a change in the Inner Text of an html

I have to check if a change was done in the inner text of an area on my website. Lets assume this to be the html of such page: <span _ngcontent-c1="" class="image"> <...
1
vote
2answers
43 views

How can I solve this Exception main” org.openqa.selenium.ElementNotInteractableException: element not interactable ?, C#

driver.FindElement(By.Id("UserName")).SendKeys("test"); driver.FindElement(By.Id("Password")).SendKeys("test123"); driver.FindElement(By.XPath("//*[@...
0
votes
0answers
35 views

Webdriver doesn't Click (sometimes) even after waiting for ElementToBeClickable

I am running the script where once clicked, Download button which gives options to download 5 different types of file. Please see the attached image [https://i.stack.imgur.com/ra8Cn.png], [https://i....
0
votes
0answers
25 views

NullPointerException-webdriver null

I put a screenshot with getDriverInstance. After run. When I run the test, I get this error. At debug it tells me that the webdriver is null. Can anyone help me with a solution how to fix the problem? ...
4
votes
2answers
61 views

Can we use FluentWait for hours selenium webdriver?

Actually I am working on one script in my application there I need to wait till its complete the execution, once complete the execute it will change the status. But I don't know when the execution ...
1
vote
0answers
98 views

Automated testing Chrome with selenium and java returns: Failed to create Chrome process

When trying to run Selenium on Windows 10 Chrome version 90, I am getting the following error: org.openqa.selenium.WebDriverException: unknown error: Failed to create Chrome process. Driver info: ...
0
votes
2answers
28 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(),'{...
-2
votes
0answers
24 views

How to input password that is inside a /div and /span in selenium

Cisco.com recently changed their login page and my selenium program no longer works. I am trying to input my password with selenium on this cisco login page (https://id.cisco.com/signin) But for some ...
-3
votes
1answer
44 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
18 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
32 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
35 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
21 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
22 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
59 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
26 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
27 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
35 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
29 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
36 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
75 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
13 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
28 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
29 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
110 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
70 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
49 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
53 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
21 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
2 3 4 5
95