Questions tagged [selenium2]

Use for questions about Selenium 2. Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

Filter by
Sorted by
Tagged with
1 vote
1 answer
109 views

Want to get value from the below code snippet through Web Driver

<script> jQuery(function() {jQuery("#chart").kendoChart({"chartArea":{"background":"#f7f7f7"} "title":{"position":"top"} "legend":{"visible":false} "series":[{"name":"Consumption" "color":"#...
Faiz's user avatar
  • 809
1 vote
0 answers
234 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: <...
Ranjan Gupta's user avatar
1 vote
4 answers
8k views

Submit button not working in Selenium webdriver

When I launch ChromeDriver or IEDriver and click the submit button (manually and automatically), it does not send the inputs. It works outside of webdriver though, I can click the submit button and ...
ihossain's user avatar
  • 111
1 vote
2 answers
5k views

Can I use Eclipse for .Net application with Selenium jars?

My application is developed using .Net and now I need to automate this application using Selenium. So, please guide me which Selenium jar and IDE I have to use to do automation. I know, for Java ...
Kanna's user avatar
  • 13
7 votes
2 answers
471 views

Integrating Selenium Webdriver tests written in Java to SpiraTest

I'm interested in SpiraTest's and Selenium Webdriver's collaboration. My objective - launch a Selenium test written in Java on Eclipse. Can the SpiraTest quality management tool run .exe or .bat files ...
Gediminas Tubelevicius's user avatar
5 votes
3 answers
6k views

Advanced selenium webdriver tutorial/course [duplicate]

Is there an online advanced/intermediate tutorial on Selenium Webdriver. Preferably using Java. I've searched a lot but could not find such a course/tutorial. Almost 99% are very basic, and I would ...
Kharbora's user avatar
  • 551
1 vote
0 answers
5k views

Selenium sendKeys() different behaviour for Chrome, Firefox and Safari [closed]

Below is simple snippet of code: @FindBy(className = "element-to-press") private WebElement elementToPress; // some other code Keys move = Keys.ARROW_DOWN; gridContainer.sendKeys(move); In Firefox ...
art_tykh's user avatar
0 votes
1 answer
2k views

Upcasting FirefoxBrowser to Webdriver

When we write the code to automate the browser then what is the need of upcasting in the code Webdriver Some_Variable = new FirefoxDriver(); //Run time Polymorphism My question: What is the need to ...
Ketan Sethi's user avatar
5 votes
1 answer
446 views

Selenium Grid2 - IOException thrown while closing Closeable.

I am executing my Selenium tests against a Grid server, hosted on a different machine. My grid invocation is (bat file): cd c:\ start java -jar c:\selenium-server-standalone-2.46.0.jar -role hub -...
FatAdama's user avatar
0 votes
1 answer
2k views

Specify what tests to run from SpecRun command line?

I'm looking for a way to specify what tests run when using specrun's command line (runtests.cmd). Is there a way to only run tests with a specific flag or specific feature file? Or is there another ...
GKS1's user avatar
  • 708
4 votes
2 answers
13k views

Mocking HTTP reponses in Selenium Web Driver using Python

I am currently experimenting with the Python version of Selenium Web Driver. Using the driver has been straight forward so far but I have been struggling recently with the issue of mocking HTTP ...
Wolf_Brigade's user avatar
1 vote
1 answer
4k views

Selenium webdriver not recognizing div element

I have found several questions related to this one particular travel website MakeMyTrip, so I tried to automating it. I was successful in selecting the primary details and getting on the Flight ...
demouser123's user avatar
  • 3,532
2 votes
3 answers
48k views

Verifying if an image Is displayed on a webpage

I have read that there is no "sure shot" way of knowing that an image is loaded or displayed on a webpage using Selenium. I want to know the reason behind it, as to why this is completely not possible....
demouser123's user avatar
  • 3,532
0 votes
1 answer
3k views

Iterating across various open windows using Selenium and Python

So my question deals with iterating over multiple open windows at a time. Suppose I am opening a website (best example would be Naukri). As soon as the page loads, two more pop up windows open up. ...
demouser123's user avatar
  • 3,532
2 votes
1 answer
1k views

Unable to open the specified URL on a real device while running Selenium tests using ios-driver

I am trying to automate mobile web testing using ios-driver on an iPhone 6 plus (real device). The Safari browser opens but the specified URL (google.com in this case) is not opened (i.e. only "about:...
Jigesh Mehta's user avatar
0 votes
1 answer
14k views

Understanding how to handle auto-complete using Selenium and Python

While testing for a certain web application, I was faced with an issue of handling auto-complete scenarios. An example of this kind could be found here MagicBricks I have few questions related to how ...
demouser123's user avatar
  • 3,532
3 votes
2 answers
2k views

Unable to open Safari app on iPhone simulator while running Selenium test using ios-driver

I am trying to automate mobile web testing using ios-driver. The safari browser does not open even though the simulator launches. The configuration as shown on terminal by running the command java -...
Jigesh Mehta's user avatar
3 votes
1 answer
21k views

Selenium Webdriver: No such element exception even though element gets available after waiting for some time

I've been keep on getting NoSuchElementException whenever I try to get an web element. I know that the web element becomes present after some time. So, I've explicitly waited for 5-10 seconds until ...
lss mesy's user avatar
0 votes
2 answers
376 views

StaleElementReferenceException in selenium

I am getting stuck at below : List<WebElement>lstType=driver.findElements(By.xpath("//select[@id='ddlGeneralType']/option")); Thread.sleep(2000); int i,j; System.out.println("the no of type"+...
Ranjan Gupta's user avatar
1 vote
1 answer
13k views

Handling PopUp windows in selenium webdriver by using c#.net [closed]

Example of Handling PopUp in selenium webdriver using C#.Net [TextFixture] public class PopUp { IWebDriver driver = null; IWebElement element = null; [SetUp] public void setUP() ...
Avinash Pande's user avatar
3 votes
1 answer
24k views

How to configure Selenium Webdriver with netbeans?

I installed netbeans and then Selenium Client Driver and the step i have done after installing Client Driver: Open NetBeans IDE. Goto File->New Project->Categories Java and Projects Java Application ...
ArYa's user avatar
  • 165
4 votes
4 answers
2k views

Selenium with multiple languages gives any additional features

I am new to Automation Testing. By googling about Selenium I gained a some knowledge on Selenium. But I have small doubt i.e., Selenium will support the multiple languages like Javascript with Node....
QAMember's user avatar
  • 1,520
2 votes
1 answer
3k views

Efficent way of checking if Element is Not Present

I currently use TestNG's assertFalse to make sure a particular element is Not shown when not logged in on a site. eg assertFalse(isElementPresent(PageElements.PDFLinkText),"PDF link present when not ...
ECiurleo's user avatar
  • 2,043
12 votes
5 answers
116k views

How to send Basic Authentication headers in Selenium?

I'm using webdriver.Firefox and I'm trying to send the following custom header: self.headers = { 'Authorization': 'Basic %s' % b64encode(bytes(self.args.user + ':' + self.args.password, "utf-8"))....
kenorb's user avatar
  • 367
0 votes
2 answers
502 views

How to execute Selenium + Junit Tests on Chrome

I have downloaded the Chrome Driver and i am able to execute my tests on Chrome. However Only local connections are allowed for it. How can i execute it globally on any machine without changing ...
Meenakshi's user avatar
0 votes
1 answer
2k views

Assertion error when comparing the text of an element

I am getting the following error while trying to verify an assertion. I tried adding wait, but it didn't help. Error message: java.lang.AssertionError: expected:<Risk Assessment Form: Completed&...
Meenakshi's user avatar
1 vote
2 answers
17k views

How to get the text present between <H2> tag

I am trying this: String str = "//*[@id="Result"]/h2"; WebElement vele = driver.findElement(By.cssSelector(str)); String vin = vele.toString(); System.out.println("Vin is"+vin); The result is: [[...
Monika's user avatar
  • 49
1 vote
1 answer
22k views

How to write xpath with variable?

I have an xpath: //*[@id='00QE000000gQ9fv_ACTION_COLUMN']/a[2]/span in this xpath 00QE000000gQ9fv is dynamic and _ACTION_COLUMN remains the same. I stored 00QE000000gQ9fv in a String variable as ...
Manoj Mishra's user avatar
4 votes
1 answer
294 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
Georg Ritzmann's user avatar
13 votes
3 answers
15k views

Is it a bad practice to use implicit wait in Selenium Webdriver? Should one use only explicit wait?

I was reading up on implicit and explicit waits and found the following two statements: Implicit wait is not considered a good practice because different browsers have different loading times and ...
LittlePanda's user avatar
2 votes
2 answers
2k views

Does Selenium depend on internet speed

I have a small question regarding selenium automation. I am using selenium automation for one website(live). Does its performance depend on internet speed?
QAMember's user avatar
  • 1,520
0 votes
6 answers
886 views

Which can be better to work with Selenium WebDriver - Java or Python? [closed]

I have start learning Selenium WebDriver, but i am confused between Java and Python. Which language should i choose? I do have basic ideas of Core Java but haven't wrote a single piece of code with ...
Jayrajsinh Jethva's user avatar
0 votes
1 answer
13k views

Webdriver not navigating to passed in URL

I am using Selenium Webdriver with Firefox (although the same behaviour occurs in IE and Chrome). I have been using driver.navigate().to().(""); and it was working fine for me. I am passing in ...
Ranjan Gupta's user avatar
3 votes
2 answers
3k views

Test recording with Selenium IDE vs manual programming test framework

I'm just beginner in this field. I have already created simple tests using Selenium in .NET environment together with NUnit. I also hard coded the same or similar tests for my framework. My question ...
Jakubee's user avatar
  • 185
4 votes
1 answer
20k views

How to send Keyboard Shortcuts to browser using Selenium and Nodejs

I am trying to create a test script in Node.JS using selenium webdriver and in case I need to send keyboard shortcuts to the driver. I tried finding the //body element and sending them but only ctrl+...
John Demetriou's user avatar
0 votes
1 answer
459 views

How to check when self.close(); executed or not in java?

the code is self.close(); some times the window is closed and sometime it doesn't closed and not throwing any popup or alert. So i wanted to check whether the window is closed or still open? How it ...
Emmanuel Angelo.R's user avatar
0 votes
1 answer
10k views

Help with else if statement Webdriver Selenium

I have this code below which seems to not go to the else if statement. It runs the first part but never seems to go to part 2, if element 1 is already selected. Thanks if (!driver.findElement(By....
Elsid 's user avatar
  • 43
3 votes
2 answers
20k views

How to change the Text of a IWebElement of Selenium in C#

The Title pretty much explains everything. I'm searching for a way to change let's say <h1 id="title">Title<h1> to <h1 id="title">Nothing<h1> I'm kind of desperate since ...
Kilian Jenkins's user avatar
2 votes
1 answer
512 views

Selenium - how to avoid "invisible element" exception and timeouts

I am writing a test script in selenium webdriver (selenium 2.0) with C# for below HTML: <table id="A_switch" class="tabswitch"> ------ </table> <div ...
Ram S's user avatar
  • 121
2 votes
2 answers
1k views

Error: cannot find symbol in XSLT + TestNG Report

When I followed this link LINK to generate XSLT Report Using testng and to send email reports getting error message (Ex: package org.openqa.seleni um does not exist, etc...0). Please suggest me. ...
Selenium's user avatar
  • 167
4 votes
1 answer
874 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
STE's user avatar
  • 749
1 vote
3 answers
2k views

Selenium Automation Framework Design Technique

This question is related to how should I approach with creating selenium automation framework. I googled and studied few frameworks. Also, I created my own framework in which I was taking input from ...
Gaurav Khanna's user avatar
3 votes
4 answers
12k views

Wait for a random time with robot selenium 2 library

After submitting a POST request with a button click from a webpage, I want to wait for 60 seconds and click a link on that same page. The wait for 60 seconds part, is that possible to implement with ...
Imran Chowdhury's user avatar
2 votes
2 answers
4k views

Testing pdf/excel content with C#

Our site has a good number of reports that are using SSRS,Crystal and Excel. We are using C# with Selenium WebDriver. I have been searching for the best practices and best ways and tools to test the ...
saifur's user avatar
  • 375
1 vote
4 answers
92k views

How to use Xpath 'contains()' function to locate a Web element in Selenium Webdriver?

I am a beginner in learning Selenium WebDriver and XPath. I am trying to get the "<td>" Element of the Nested Table which Contains string '7-8-9.' Following is the HTML page code: <!DOCTYPE ...
tester23's user avatar
1 vote
4 answers
52k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I am ...
Sateesh Sasapu's user avatar
29 votes
6 answers
153k views

How do I work with dropdowns in Selenium Webdriver?

This is a canonical question, intended to provide a comprehensive answer to many related questions. I understand the basics of working with Selenium Webdriver; I can navigate to pages, click buttons, ...
Yamikuronue's user avatar
  • 3,372
2 votes
2 answers
1k views

Need help to get drop down in a list (phpunit+selenium2)

I am new in Phpunit and selenium2. Need help to get all the values of drop-down in a list. <select id="month" class="_5dba" title="Month" name="birthday_month" aria-label="Month"> <option ...
user10948's user avatar
0 votes
2 answers
2k views

How to run Selenium WebDriver java/testNG script with Windows Safari browser?

I know how to run test script in chrome and firefox. Please help me how to run my Selenium WebDriver java/testNG script in windows safari browser.
KKROYIT's user avatar
  • 81
-1 votes
5 answers
4k views

Selenium: Unable to automate file upload [duplicate]

Can someone please help me in automating file upload on this page- https://www.designerexchange.com/index.php/sell/quote I tried everything, but the file upload is very dynamic.
Peter Parker's user avatar

1
3 4
5
6 7
11