Tagged Questions

Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
1answer
57 views

Where does the “helper” method get placed within a test script?

I'm new to automation, and programming, for the most part. I have a test script where I have to verify the presence of certain elements within a page I am testing. At the moment, I have multiple ...
0
votes
1answer
40 views

How to test Image carousel

I would like to test an Image carousel using Selenium C# An example of the type of the type of carousel can be found here: http://bxslider.com/ Maybe the test could click on the next image, assert ...
0
votes
0answers
26 views

got stuck in reusing the parameters value using testNG in selenium

I got stuck at one scenario where i want to get the values from the excel that contains 12 rows for four type of actions. i meant the first column of the every row on the sheet determines my methods ...
0
votes
1answer
42 views

Not able to click in Selenium Webdriver. Getting a NoSuchElementException

I got my code ready in Selenium IDE and exported it to Selenium Webdriver (JUnit 4). My code was working perfectly in Selenium IDE but an issue has arose after my migration to Selenium Webdriver. ...
0
votes
0answers
17 views

Selenium Testing in Android Devices

How can i do my selenium testing by opening the browser in android device from my PC, without connecting through USB?
0
votes
2answers
35 views

how to do automated testing on both front end and database

the testing includes front end GUI testing and database verification and some files verification under windows/linux. I know that selelnium can be used for front end GUI testing. what about the other ...
0
votes
3answers
45 views

How to open two firefox browsers using selenium? Closing one and then opening another with different URL [closed]

I am trying to close and then re-open the FF browser with different URL.
0
votes
2answers
71 views

Selenium WebDriver how to name each screenshot taken after a test based on the test name

I am currently using the following method to take screenshots after each test, and it works fine: @After public void takeScreenshotAtEndOfTest() throws IOException { File scrFile = ...
1
vote
1answer
47 views

Unable to open Chrome WebDriver in another language

I'd really like to write a Selenium WebDriver test that verifies text is localized. The localization code bases the strings it displays on navigator.language (or navigator.userLanguage for IE). I ...
0
votes
1answer
54 views

TimeOutException when trying to identify Dropdown Element in last iteration of For-Loop

I got stuck in for loop as the automation code is entering a loop that has few actions to be done like this: for (i = 0; i <= 2; i++) { // if(i==2)break; ...
1
vote
5answers
67 views

Selenium Webdriver get() shows intermittent TimeoutExceptions - how do I proceed?

I'm using Selenium Webdriver for testing a Django/Python based web application. I use both, the phantomjs and firefox drivers. We use django's LiveServerTest test case, which basically starts up a ...
1
vote
2answers
131 views

error Could not connect to Selenium Server. Have you started the Selenium Server yet?

At the first step after installing Selenium IDE, I recorded a simple test case, but I can't play this, because of this error: [error] Could not connect to Selenium Server. Have you started the ...
0
votes
2answers
52 views

stuck with picking up particular date in selenium webdriver

I want to select a particular date from the calender so I wrote this code with the help of other sources: WebDriverWait waitForDate = new WebDriverWait(driver,300); ...
1
vote
3answers
67 views

Selenium Webdriver - FindElement in scope of WebElement doesn't work

The FindElement() method doesn't seem to work with an XPath locator, if called on an existing WebElement. My code is this: htmlDiv = _driver.FindElement(By.XPath("//h2[text()='" + onvNaam + ...
0
votes
3answers
90 views

How to manage to learn Selenium, Jmeter on your own so that you could use it to your best knowledge on your new automation role

I arrived UK this august and was looking for jobs here into functional testing, but i have been called for an role which has functional testing, automation testing(Selenium), Performance Testing(J ...
0
votes
1answer
58 views

Selenium WebDriver - how to cleanly code with PageObjects in combination with By locators?

I'm using the PageObjectModel as I'm understanding it. The FindsBy elements are instantiated by the PageFactory (in the constructor) public class wizard_Uittreksel_Bestemmeling { private readonly ...
0
votes
0answers
30 views

ElementNotVisibleException on Mac, not Windows

I'm trying to get Webdriver in Python to click a cell in a table, wait for JavaScript to add an element into the cell and then click the element that appears which causes a dropdown to appear. We ...
0
votes
1answer
55 views

Selenium2 / WebDriver: How to click an <i> element in an <a> element?

I got stuck for the below code.it has an edit icon for which code are follows: <a href="#tradeModal" id="tradeModalEdit" data-toggle="modal" class="pull-right" style="margin-left: 12px;" ...
1
vote
1answer
47 views

Wrap specflow scenario within try-catch

I have been running into a problem with the C# selenium bindings decribed here: http://stackoverflow.com/questions/22322596/ where a timeout exception is thrown occasionally while running my selenium ...
0
votes
1answer
45 views

How to set browser locale with chromedriver (Python)

I am trying to set my browser locale by doing the following options = webdriver.ChromeOptions() options.add_argument('--lang=es') driver = webdriver.Chrome(executable_path=driver_location, ...
0
votes
2answers
107 views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
0
votes
3answers
88 views

Selenium (Java): Which IDE to use; Eclipse or Netbeans

For a new project i want to start automating tests using Selenium. I'm going with Java as the object that has to be tested is a Java application. In my company most people use either Netbeans or ...
0
votes
0answers
37 views

Selenium script for selecting any one of the users

I have added the code selecting anyone of the user but only first time it works so please help me with this. Stripe.com ...
0
votes
1answer
74 views

automating selenium 101

I'm just getting started with selenium: package selenium; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; import org.openqa.selenium.WebDriver; import ...
0
votes
1answer
77 views

How to run data driven testing using testNG in selenium

I am using testNG framework and tried to import data from excel sheet in my local. If I run the code as simple java application then its running but with testNG its not public class NewTest { public ...
2
votes
6answers
197 views

How does a Manual tester become expert in automation testing in selenium?

How does a manual tester become expert in automation testing in Selenium? Please also explain where to start and how to start. I am also not good in Java but I have basic knowledge. I want to do ...
3
votes
2answers
107 views

What kind of test cases we can not automate in selenium webdriver - java

I want to know what kind of test cases we can not automate using selenium webdriver. I do not want to use any 3rd party tool (Autoit, etc..).
0
votes
1answer
62 views

How to make the opening of browser(all test in one browser) static in testng for selenium [duplicate]

I am using selenium and testNG framework for my project. Now what is happening is each class is opening up a browser and then run its methods, eg, if I have five classes, then five browsers will open ...
0
votes
1answer
36 views

selenium click stop working after several iteration

I have a test that clicks on a preview link > opens up a window and I do some sort of test in that newly open window. I then close that window and click on the preview link again and repeat. Let's ...
1
vote
2answers
83 views

Disable a pop up rendered in FF and not with IE

when testing with Selenium Webdriver, I'm getting an advertising pop up window with Firefox and not with IE. Actually this pop up is preventing me from doing many other tasks. Is there a way to ...
0
votes
1answer
98 views

How to modify testNG report in selenium java

I am running my script in java and getting the results in testNG. But in my application after filling up the form I am getting a confirmation alert message. I am able to read that alert message and ...
2
votes
2answers
99 views

How to ignore/accept/avoid SSLHandshakeException while trying to check for broken links?

I'm trying to verify if a link is throwing response code other than 200. Link that I'm trying to verify is https:// and after process has run, it throws this error -- ...
0
votes
3answers
99 views

Selenium: dealing with intermittent cases of element not found

Sometimes it works and sometimes it doesn't. I've tried implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); I've tried explicit wait: ...
-1
votes
1answer
55 views

this is scenario to automate [closed]

a) Go to http://money.rediff.com/gainers/bse b) There will be a list of company names and their current prices listed in the grid c) Find any company say 'SPIC.' and then read the current share ...
0
votes
2answers
52 views

Button gets disabled and doesnot get clicked

I am using Selenium IDE to make a automation scripts. In my code there is a page where when i select some options the 'Next' button gets disabled for a while. I have used a 'pause' statement for the ...
0
votes
2answers
64 views

Button click not redirecting to next page in Selenium IDE

I am using clickAndWait for xpath=//button[contains(.,'Next')] When I click Find on Selenium IDE the button is found, but the script doesn't click on the button. The button has id = pmc_wizard_next ...
-1
votes
1answer
38 views

Selenium for MacOS Setup

I wanted to know if there is a good source for setting up Selenium in Eclipse on MacOS. I have MacOS 10.9.4.
0
votes
1answer
111 views

Want to learn Selendroid

I am a manual tester with knowledge in selenium webdriver but as I see that selendriod came in for mobile app testing. My question is What would be the best place from where anyone can learn ...
0
votes
2answers
70 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When i click on the select box and then further use click() on the value item , it works fine. but when i use Keys.ARROW_DOWN its displays the ...
0
votes
4answers
105 views

How to work with changing element id in the html code

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
1
vote
2answers
441 views

want to scroll down page/form using selenium webdriver

I want to scroll down a page that is coming inside a form, not in the main page. I tried this code JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", ...
-1
votes
1answer
64 views

want to capture data after the search action using selenium webdriver

I am working on a erp application where I have to click on a 'search' button after which it will give me list of data . I want to automate that using webdriver. The search tab is empty before the ...
1
vote
2answers
141 views

How to verify whether selected item is exist in another page? (Ecommerce application)

I am trying to verify selected item is exists in another (Cart/Shopping Bag) page, for EX: I am buying one/many items from application and then I will move all the items to Cart/Shopping Bag, here I ...
3
votes
1answer
105 views

Mobile application testing

I am new to "Mobile application testing" and I googled and got appium and selandroid. I want to learn mobile application testing and I have experience selenium webdriver with java. Queries are: I ...
0
votes
1answer
115 views

I want to select the value from the dropdown

I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. ...
1
vote
1answer
81 views

How to switch pop-up handler using selenium webdriver

I am working on a application that opens a form to fill up when i click on a button. I need to switch to that window , fill up the form and come out I tried this code Set beforePopup = ...
0
votes
5answers
73 views

Is it recommended to document how selenium automation tests are laid out?

The automation code I'm working with was written by several people before me. It's messy, complex, etc. There are barely any comments within the code. It takes me an extremely long time to figure out ...
2
votes
0answers
68 views

Selenium RC with Firefox portable (Windows)

I try to use Firefox Portable with Selenium from my Windows 7 OS but I'm having difficulty . So, I launch selenium RC server with the default folder profile of FirefoxPortable : java -jar ...
0
votes
1answer
26 views

Selenium support (native and its bindings)

As far as I am aware, Selenium is an active project that is being developed and heavily used. However, when I look at the defects list on their official site, it looks like there are thousands of ...
0
votes
2answers
91 views

Can you use javascript with selenium webdriver?

I want to automate a website with selenium web driver using javascript. I am good at Junit(java) but not an expert in javascript. please can anyone help me rewrite this little code snippet in ...