People who code: we want your input. Take the Survey

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

Finding sibling of found element using selenium

I've got a field with a date in it that's identified by a code that's shown in the div previous to it. <div class="fcode"> <div class="fcode_n">(123)</div> ...
1
vote
1answer
406 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
3answers
2k views

How to handle tooltip on onmouseover in selenium java

test case is to show the tooltip message my html code is below <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]);" onmouseout="closePopup();" ...
0
votes
2answers
518 views

How to maximize browser window irrespective of windows versions

I have some scripts which are running on Firefox browser. Here the problem was I am using driver.manage().window().maximize(); code to maximize the browser. It is perfectly working fine with Windows 7 ...
6
votes
5answers
37k views

How to modify HTTP request header in Selenium WebDriver with Java?

I want to add "iv-user" request header to log into web app. I'm using the newest ChromeDriver. Using extensions like ModHeader or ModifyHeaders is not working in this case. Fiddler is working, but I ...
0
votes
1answer
22 views

Calculate the time for progress bar is finished and throw warning if it takes too long?

I am automating a file upload on a web page. The point of my automation is to check if the file upload is taking longer than expected. This is the hmtl for the progress upload bar banner: <div ...
6
votes
2answers
2k views

How to ignore a test in C# when CurrentEnv is Prod

I have created a ProdIgnoreAttribute which extends from IgnoreAttribute. And I have assigned this attribute to certain tests which I want to run in DEV/QA but not in PROD. ApplyToTest(Test test) ...
3
votes
5answers
26k views

Why this “WebDriver driver = new ChromeDriver();” Not this “ChromeDriver driver= new ChromeDriver();”

Why we always do: WebDriver driver = new ChromeDriver(); Not this: ChromeDriver driver= new ChromeDriver(); Any special reason, except object size ?
1
vote
0answers
26 views

How do I handle Chrome Autofill using Selenium Python?

I encountered an issue using the chrome autofill option. There is any way to handle the options list? (please see the image) What I've done: Load my Chrome Profile Launch Chrome with my loaded ...
2
votes
1answer
1k views

Logging js console when doing selenium test using firefox driver

I'm writing selenium tests which are launch on the firefox (gecko) driver. If a test fails, I want to retrieve the log present on the firefox js console. In order to do that, I have added the ...
1
vote
2answers
74 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 ...
2
votes
1answer
116 views

Which language has more libraries and bindings for Selenium WebDriver? Java or Python?

This question might sound repeated. I have searched Stack exchange and found many questions by users who ask mainly on which language they should choose for Selenium WD: Java or Python? But their ...
0
votes
1answer
61 views

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

I want to click on an element which contains class and title in selenium python. A webpage contains certain folders with unique name. I want to click on a folder by specifying its name or title. Below ...
0
votes
0answers
18 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/...
0
votes
1answer
5k views

App is launched but not able to perform further actions (App automation using appium)

I am new in mobile app automation I have successfully launched Google Playstore application in my android device. but,i can not click on next tab "GAMES". My Code package com.automate.app.screens; ...
2
votes
3answers
2k views

How to get Selenium 3.0.1 to work on a Mac with IntelliJ

I am using a Mac as well as IntelliJ. I am trying to update Selenium from 2.53 as the website I am testing has functions that no longer work with older versions of Firefox (version 46). I am trying to ...
0
votes
1answer
36 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 ...
2
votes
1answer
124 views

How do we generate load in the queue using selenium?

We are trying to generate videos (video streaming via Youtube URL's) in the queue. Some of the users will be watching the videos in FIFO Format so we would like to know the process where we can push ...
0
votes
3answers
6k views

How to integrate/merge multiple extent reports into one single report using selenium, extent report v3xx

I am running selenium scripts using jenkins jobs/multijob and its creating multiple html reports for different modules. How can we combine/merge all html reports to one single report? Extent report ...
-1
votes
1answer
29 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 - ...
1
vote
3answers
5k views

Permissions error trying to run Appium test on Android

I am not able to run my automation testing with Appium server using Eclipse with Selenium. The error I get is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to ...
-1
votes
6answers
12k views

Unable to click on checkbox using Selenium & Java

please send me the full code I tried Some XPath and CSS: XPath: //div[@id='autofill']/div/label //div[4]/div/label CSS: div.col-md-1.checkbox.checkbox-primary > label* but using above ...
0
votes
1answer
48 views

Calculate the total of liabilities and check it is matching with the given value

I want to calculate the total liabilities amount from webtable and need to compare with the total amount which is present on webpage. I got the following error : Illegal/unsupported escape sequence ...
1
vote
0answers
501 views

Occasional no response from Selenium Grid server - any theories?

While locally we're having no problems, on a virtual server we're running Jenkins which kicks off Selenium Grid to execute some of our tests. Exception has been thrown by the target of an invocation. ...
0
votes
1answer
35 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.
0
votes
6answers
4k views

How can selenium webdriver locate elements successfully in an angular.js app

I identified the applications element (locators), but when I run using webdriver, I receive the following error: org.openqa.selenium.WebDriverException: Element is not clickable at point (784....
0
votes
1answer
272 views

Not able to add Bug from Testlink to JIRA (Required Version Number)

I have Integrated JIRA from testlink using REST API. I was also able to link the failed testcase to a bug in JIRA. But while trying to create issue in testlink there is a validation happening for ...
0
votes
0answers
39 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
1answer
2k views

How to launch Firefox Geckodriver with add-on enabled in selenium java?

I'm trying to use a custom profile in Firefox with an add-on, I can open the profile, launch URL, I even see the add-on icon on top bar but is always set into the disabled mode, I need to set it to ...
1
vote
2answers
90 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.
32
votes
5answers
244k views

A way to match on text using CSS locators

So I use xpath locators and slowly converting to CSS. I haven't found a way to do an exact match based on text. For example converting //a[text()='Log Out']. I know you can do css=a:contains('Log ...
3
votes
6answers
96 views

Which is preferred in selenium, writing tests by page or functionality?

Should we write scripts that work 'page by page' or 'by functionality' which may mean several pages? if it’s page by page how do we verify the success criteria for any element? if it’s by ...
0
votes
1answer
30 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
vote
1answer
30 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"); ...
1
vote
1answer
6k views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
1
vote
1answer
38 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 ...
6
votes
3answers
632 views

Is the Page Object Pattern the ideal approach for browser automation for a website which has a frontend that has nested frames?

I'm confronted with a web application which has a front-end that has frames in frames in frames. Regarding automated UI Tests with Selenium and Cucumber, is the Page Object Pattern the right approach ...
1
vote
2answers
59 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 ...
0
votes
2answers
11k views

Clicking a cell in a dynamic data table C# WebDriver

The HTML I'm trying working with is below, <div id="enquiry-header-grid-SalesTransactionEnquiry-enquiry-header-grid-wrapper" class="enquiry-kendo-grid-wrapper k-grid k-widget" data-role="grid" ...
0
votes
1answer
62 views

Fetch paid Amount value from iframe

if(ScenarioName.equals("MoveinwithVantivCard")) { driver.findElement(By.id("btnsave")).click(); // driver.switchTo().frame("paymentIFrame"); driver.switchTo().frame(driver.findElement(By....
1
vote
2answers
63 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
56 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
2answers
55 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
2answers
27k views

How I can verify Text is present or not in robot framework?

I am trying to use the following syntax but can anyone tell me how I can use this as an example? Element Should Contain locator, expected, message=
0
votes
1answer
519 views

How to generate report using extent reports in Page Object Model in C#

I have created a POM framework using NUnit in C#. I have created Reporting.cs file which creates reports for the test in that class. How I can generate reports for all tests in different classes ...
0
votes
2answers
76 views

How to get content of an clickable element in Selenium?

Facing issue to read content after clicking an element in Selenium. I have tried with below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); ...
0
votes
3answers
2k views

Selenium IDE type not saving text

I am trying to create an automation tool to test a salesforce platform. When I try to create a new form, the text is displayed but it's really just an injection from Javascript. Is there any way to ...
3
votes
9answers
1k views

What is Software Test Automation Framework?

I am a beginner Software tester. I have started to learn test automation of web apps using selenium webdriver in java. Till now I can just automate simple login functionality. I want to know all about ...
1
vote
1answer
171 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
2
3 4 5
96