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
-2 votes
1 answer
1k 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 succeeded. I want to access line 130 Começa a new game It has two elements with class="responsive-lg" and the one I want is the second. I ...
Kali Chad's user avatar
-2 votes
1 answer
521 views

What is the difference between the Selenium tool and the Cypress tool?

What is the difference between the Selenium tool and Cypress tool? How they both are works differently from each other?
sushen's user avatar
  • 100
-2 votes
2 answers
66 views

How to make a test fail if driver takes long time to look for an element. I am not sure which elements will throw this exception

I am not sure which elements will throw this exception.In general is there any method other than providing - a page load time out , implicit, explicit or frequent wait for a particular element .
testerAutomation's user avatar
-2 votes
3 answers
8k views

Unable to find the element using XPath

XPath: //*[@id=\"clB\"]/div[1]/div[1]/a/div Exception: Exception in thread "main" org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath ...
Nandini's user avatar
-2 votes
4 answers
1k views

Unable to locate webelement which is wrapped in nested classes

My task is to locate "quote1" and click on "add" button: <div Class = “binder” <div class = “books ” <form style = “book1” <div class = “pages ” <div class = “page1” <div class = “...
sunita matani's user avatar
-2 votes
1 answer
608 views

Page chaining in POM method

I have created three packages. generic webpage script In generic I have base test and other common methods. In webpage I created class for each web page. In Script I have my testcases. I need ...
user31899's user avatar
-2 votes
1 answer
568 views

Getting NullPointerException while performing getText alert handling

String alreadyuploaded="Mentioned upload file has already been uploaded"; String msg= DriverUtility.waitForAlertMsg(driver); if(msg!= null && msg.contains("Wrong")|| msg.contains("Duplicate")|...
Yash Shrivastava's user avatar
-2 votes
2 answers
3k views

How do Continue the Scripts Execution Even one line fails to execute? [closed]

My code is as under: FirefoxDriver driver = new FirefoxDriver(); driver.get(url); //element is not found here driver2.findElement(By.xpath("//*/div/div[2]/div/div/div[2]")); //i want to continue ...
John's user avatar
  • 3
-2 votes
1 answer
682 views

Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with [duplicate]

I have used find the element by Xpath in my code, I get the error as ElementNotVisible. <div class="loginBtn"> <input style="width: 59px; height: 20px" id="SubmitCreds" onclick="clkLgn()"...
Vickey Sujey's user avatar
-2 votes
2 answers
1k views

Required Selenium Test Cases for Yahoo Login Form [closed]

I am new to selenium. Anybody can please write down Selenium Test Cases for yahoo login form. It will be really appreciated, if someone help me.
Muhammad Ali Khamis's user avatar
-3 votes
3 answers
85 views

what is the difference between //span and //*?

I am learning selenium Xpath. what are the different ways of Xpath ? what is the difference between //span and//*?
Aam ali's user avatar
  • 137
-3 votes
1 answer
6k views

How to disable user from closing the browser until Test Execution is complete ? using Selenium Webdriver & Chrome

User should not be able to close the browser using following methods. 1)Clicking X button of browser window 2)Using Alt+F4 3)Right-Click on Taskbar Icon + Close Window Edit : We require this ...
Ramkrishna Bhandare's user avatar
-3 votes
1 answer
220 views

Is It Beneficial For QA To Test Web Services [closed]

How to test web services in manual testing? How to test web services in Automation? If user don't test the functionality and only test web services is it beneficial for QA? Is it time consuming or ...
jay sanghavi's user avatar
-3 votes
1 answer
2k views

XPATH FACEBOOK How can i get xpath or css selector ? - selenium/java [closed]

I automated some facebook functions for pratice selenium, but i can't click on search options. How can i try this ? Search: elements:
skape's user avatar
  • 21
-3 votes
1 answer
2k views

How to develop data driven framework using Selenium with C#? Please provide example [closed]

How we can develop data driven framework using Selenium with C# to test the web applications? In your response can you please provide an example?
ASHOK's user avatar
  • 1
-3 votes
1 answer
210 views

Selenium - what is the CSS for the following Xpath [closed]

I have this xpath generated from firebug but I need to use a CSS selector in my code. Just take the xpath as the code. So my code has 7 div tags where 7 div tag has 2 div tag and then <a class="btn ...
Monika's user avatar
  • 49
-3 votes
1 answer
547 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....
pocket monster's user avatar
-3 votes
1 answer
64 views

How can i use driver.findelement for All Steps [duplicate]

I need to call google in a test case and with google open enter the information in the fields. Take a look at my code: import cucumber.api.PendingException; import cucumber.api.java.es.Dado; import ...
Rebeka Montana's user avatar
-3 votes
2 answers
658 views

Is it possible to automate IE webpage dialog in selenium [closed]

F12 is not working on webpage dialog, tried to change the settings of IE with no luck. Dont want to use AutoIT.
neha 's user avatar
-3 votes
1 answer
3k views

java.lang.NullPointerException when running a testcase via Selenium webDriver in Chrome

There is my code: LoginPage Class: public class LoginPage { private WebDriver driver; public LoginPage(WebDriver driver) { this.driver = driver; } private By loginField = ...
Nazar's user avatar
  • 51
-3 votes
1 answer
331 views

Unable to locate element using this XPath [closed]

This is my xpath - //*[@id="284623"]/div[4]/div[4]/img Unable to locate element using above XPath. Please help..!
user30958's user avatar
-3 votes
1 answer
97 views

Unable to find out accurate price difference for products without discount [closed]

I have tried to calculate price difference of product, but I am not able to calculate the difference for a product who doesn't have any discount on it. My code is: package Tekbakertest; import java....
vaish's user avatar
  • 1
-3 votes
2 answers
848 views

selenium webdriver getting error as with implicitlyWait was undefined

package mypackage; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui....
keerthi's user avatar
-3 votes
1 answer
320 views

Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object? [duplicate]

When every test class will inherit driver, then why should we create constructor that takes driver object? public class BaseTest{ public static Webdriver driver = new ChromeDriver(); } public class ...
jeff64's user avatar
  • 1
-3 votes
1 answer
692 views

Iterating in drop down through selenium web driver

How do I iterate in drop-down using Selenium Webdriver? I have a drop-down like B008124/001, B008124/002, B008124/003, B008124/004. Here I have to select B008124/001 and perform some option like ...
yukesh raj's user avatar
-3 votes
1 answer
138 views

Selecting a second player is not working, while automation

I am automating my app. App is a commentary app. I am selecting 3 players and clicking on their respective positions. Here I am able to select the first player and its position, but unable to select ...
user avatar
-3 votes
4 answers
1k views

How to move inside else not to catch? [closed]

i am using selenium with java public void main(String args[]){ try{ if(ele.isDisplayed) { syso("test1"); } else { syso("test2"); } } catch(Exception e){ ...
sameer joshi's user avatar
-3 votes
1 answer
2k views

How to specify an existing database for django to use? [closed]

I think by default Django will create a new and empty test database to run the test cases. Is it possible to configure Django to use an existing database instead of creating a new one? === EDIT: The ...
yaobin's user avatar
  • 97
-4 votes
3 answers
17k views

Outlook Mail testing [closed]

I want to know how to use outlook to test mails (the mail has a link that needs to be clicked to approve or deny the request). How do I write this in Selenium Webdriver in c#. I am quite new to ...
Yvette's user avatar
  • 1
-4 votes
1 answer
1k views

Selenium with React dropdown

I am bit stuck on how to automate a dropdown without select tags and select desired values by text/name HTML Code is below <div tabindex="0" direction="ltqr" class="reacst-...
Neha Singh's user avatar
-4 votes
2 answers
5k views

Where can I download Selenium-2.47 Jar files? [closed]

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file?
LoveJava's user avatar
-10 votes
1 answer
4k views

Pre-requisites & Procedure to install selenium tool on Windows 7 Operating system? [closed]

I would like to Install Selenium open source tool in my pc ( windows 7 OS) I would like to know the procedure as well as per-requisities .
venkat's user avatar
  • 5

1
97 98 99 100
101