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
-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
47 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
493 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
30 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
0answers
14 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
1answer
260 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
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:/...
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
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
78 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
240k 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
93 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
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.
0
votes
1answer
79 views

until method is not present in class WebDriverWait in Selenium showing complie error [closed]

WebDriverWait wait = new WebDriverWait(driver, 1000); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(ExcelFileReader.findElement(xpath))); import org.openqa.selenium.support....
-1
votes
0answers
26 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
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
33 views

Selenium webdriver or open source UI tools VS testproject.io kind of cloud platforms [closed]

When I started working for a new company, one of the first things I noticed was that they have a tendency to do UI automation with scriptless tools available on the market. The actual application to ...
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
33 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
616 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
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 ...
0
votes
1answer
27 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
1
vote
1answer
96 views

(Ruby) How can I invoke multiples Selenium Webdriver just in one browser POM

I'm a newbie on ruby language... Currently, I am using POM (page objects model) with Selenium webdriver. This is my trouble: As I'm using selenium with POM, I have 3 classes (register.br, login.br ...
4
votes
1answer
1k views

How to use multiple wait conditions in Selenium Webdriver using ruby?

I wanted to know, how I can use following waits in program at which situations? driver.manage.timeouts.implicit_wait = 20 driver.manage.timeouts.script_timeout = 20 driver.manage.timeouts.page_load = ...
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
61 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
46 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
2answers
42 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
26k 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
503 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
75 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
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
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
1k 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 ...
3
votes
2answers
1k views

Test Automation for different user roles within an application - Selenium and C#

I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application; Our application has many roles a user can be; such as an admin, ...
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"> <...
0
votes
1answer
2k views

Selenium OnClick identify button C#

How to identify this button in C#: <button class="reward_link_redeem_button_style" onclick="RedeemRPProduct('free_points_1')">REDEEM</button> <button class="...
0
votes
2answers
14k views

Selenium IE Webdriver showing “Only Local connection are allowed” in TestNG

I am trying to launch my application in IE browser in selenium using TestNG framework. But, after the IE browser is launched, the Eclipse console shows an error that "Only Local Connection are allowed"...
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
2answers
823 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 ...
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? ...
1
vote
2answers
8k views

How to read HTML source from IFRAME using selinium webdriver

System.out.println("iframe source::"+driver.findElements(By.tagName("iframe")).get(1).getText()); I have tried the above code but it is returning empty. driver.getPageSource() will return HTML code ...
1
vote
4answers
2k views

Gecko Driver not navigating to URL

i am having a funny issue with my gecko driver. The browser loads however it does not redirect to the URL as stated below. Dim fireDriver As New FireFoxDriver(New FireFoxOptions() With {....
0
votes
1answer
3k views

Unable to create new service - Selenium + Jenkins

I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
0
votes
1answer
368 views

Clicking flipping image in selenium webdriver using C#

New to this platform I'm a beginner learning selenium webdriver with c# but I have a problem clicking on a flipping image, I identify the id but it won't click on it. I was told to use wait which ...

1
2 3 4 5
95