Tag Info

New answers tagged

0

For more understanding review this blog. http://software-testing-tutorials-automation.blogspot.in/2014/09/how-to-drag-and-drop-element-in.html


0

You can download directly from Selenium side http://www.seleniumhq.org/download/ select Version which would you like to want download. Java 2.47.1 2015-07-29 Download Change log Javadoc


0

The Selenium download page contains both a link to Selenium and the JavaDoc: http://www.seleniumhq.org/download/ The download page also links to the Maven locations: http://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-server/2.47.1/


0

If you want to have a look at Open source options, here is a comprehensive link of such test management tools Open Source Test Management Tools


0

I believe TestRail can be edited to be able to spin off automated tests within the TestRail site. See: http://docs.gurock.com/testrail-custom/automation-trigger


1

Adding to Niels answer that CI-Servers like Jenkins are the tool of choice for automated test execution (which I strongly support), I like to point out that there are also plugins available for transferring the test results from Jenkins to a full blown test management application for archiving and reporting as well as merging them with other test results as ...


4

I do not know what features QC delivers for running automated tests, but this is what I would do to maintain a Selenium test-suite: As a test runner for Selenium just use a unit-test runner in the language you are developing your tests in. Most xUnit-tests runners generate the same result files, which can be parsed by report generators for reporting. To ...


0

I'll add Telerik Test Studio to the list. I use it for 10,000 virtual users across 5 PCs. If you can afford it, I couldn't recommend it enough. Way easier to use than JMeter. Also, my automated tests are in the same project, so there is no context switching or new tool to learn.


0

You can go for below mentioned links too, they contain good stuff for Intermediate and Advance level: Selenium Easy SoftwareTestingHelp (I myself use this link as it explains concept in a very good manner) If you need videos for learning Advance Selenium then you can go for QTPSelenium it's not free but very good stuff (if you require this)


-1

Have you checked on youtube. There are enormous resources out there on various topics. I can share one link here about https://youtu.be/vcT4Ic5pbEA https://youtu.be/3crs-xBnkxc


3

Some good Selenium tutorial for beginner/Intermediate/Advance are given below : 1 - ToolsQA 2 - Guru99


0

You always can use xpath, for example simple xpath for button with text "Login" will be (with findby of course): @FindBy(xpath=".//button[text()='Login']") private WebElement loginButton; Or if You want to locate button that contains few words and You want to use only for example two of it, this will be: @FindBy(xpath=".//button[contains(text(), 'Login ...


0

I would definitely recommend broadening the types of testing you are doing, as well as seeking out more complex functionality to test. Have you ever done performance testing? Reliability testing? Security testing? Database testing? What about designing scripts that actually crawl the functionality of your website without you telling them what to do, and ...


2

If you need to go by something else than id, check this link. In your case, you can use className or xpath or css - depending on your exact HTML code. So for example, you could have something like: @FindBy(how = How.className, using = "login") private WebElement passwordField; This way, you can define the login buttons in a broader sense so all of them ...


1

best practice will be to use page object design pattern. Then, each page has login method, which does login in a page-specific way.


0

Firstly, I work for IT Central Station, a platform for crowdsourced IT reviews. The easiest way to check out these various products on our site may be to look at a comparison page of these products you are researching. If you're looking into other tools aside from JMeter and Selenium, you may want to look at StormRunner, HP's newer tool. A few of our real ...


2

"Test automation" means more than just automating user interfaces that run in a web browser. Someone with good programming skills should be able to find many other ways to use software to test software. Here are are couple of examples: Write API-level integration tests. If developers test, they probably focus on unit tests. There is a middle ground ...


0

I don't know if this is what you are looking for but as is case for a lot of people we don't have a choice of what to automate. So what I personally try to do is also figure out what can I do that would prove useful for the software but still be exciting. One of the things is performance testing. I haven't seen too much that automated tests also maintain a ...


0

Check out some interesting challenges on https://challengers.flood.io/


1

A CMS can be challenging. You have content moving, user permissions, generated IDs, etc. Try out WordPress. I snapped out of the automation boredom once I hired someone to take it over and I took on security testing and process improvement. Start with OWASP for security.


1

I think Single Page Applications type which last time gains more and more popularity can be hard to automate, because this type of pages are dynamically loaded. Every action on page can load new div from server without reloading whole page, just for example simple paste table to div. Webdriver cache webelements on page load, and dynamical loading of html ...


3

We have had a very hard time automating the Google Maps API. Test case: Surf to Google maps: https://www.google.nl/maps Find an area with known location Click the known location (without the use of mouse-coordinates, should also work when zooming, etc...) Verify the location box with details opens Retrieve the phone number This is very hard, because ...


0

This syntax might help u check out. @FindBy(locator="locator value") private WebElement elementName; Don't forget in POM we follow encapsulation concept


0

Junit ignore tags are a good fit here , add this to the tests you don't want to run and that way it will not run the tests thata re tagged ignore


2

The Wikia project has their Selenium tests online, looks like a little bit more then just examples. It contains a Page object factory and hundreds of tests and looks like it is pretty active with multiple commits per day. The test cases: https://github.com/Wikia/selenium-tests/tree/master/src/test/java/com/wikia/webdriver/testcases I found this when I ...


1

Where can I find sample or real Selenium projects. You can find selenium sample code and projects at the below mentioned links https://code.google.com/p/selenium/wiki/GettingStarted http://examples.javacodegeeks.com/enterprise-java/testng/testng-selenium-integration-example/ http://www.qaautomation.net/?p=263 Yes, these are the sample codes, which ...


0

I've figured out how to deal with this issue. I used the Visual Event tool to determine that edits to data in the text box triggered the JQuery change event. Next, I learned a bit of JQuery so that I could use it to set the field value and fire the change event. Finally, I replaced my original code with the snippet below. ...


2

@FindBy(css="a[dta-qid='inventory']") I've used that kind of locators in my last project and it's worked like charm. I hope this is that You want :)


0

I can't give you an exact answer without seeing the full element, but the official documentation on selectors ought to help you out.


1

Selenium IDE does not provide a way to compare images. You can retrieve pixels from an image in Javascript, but only if the image is in a Canvas element. I suspect you can find a command-line program that checks whether two images are identical. (It might be as simple as a byte-by-byte comparison of two files.) Some tools are more sophisticated; see for ...


0

I think the issue here because your has style="display: none;". In this case, I think you should click on the div first and try it on Select. Below is my code: WebElement divClick = driver.findElement("//div[@class='form_row']/div"); divClick.click(); WebElement dropdown = driver.findElement("//select[@id='dn']"); Select select = new Select(dropdown); ...


1

You have several choices, although none are perfect. In the order I prefer to use them: Database/data manipulation - unless you have a ridiculously complex data structure (been there) or no access to the database in question (been there, too), this is the simplest, safest way to manipulate expiry/deadlines. Setup/configuration manipulation - configure your ...


1

I am going to coin this user246's First Law of Testing: everyone who tests software will eventually need to test something with a deadline. (I'm sure several hundred thousand other testers have coined the same law.) Although the specifics vary from one problem to the next, there are two essential solutions: either change the clock or change the deadline. ...


0

If you are running the tests in a VM, with an offline snapshot of the DB also in a VM, there is no reason not to advance the VM system date/time as necessary. You could even do the same without a VM but with standalone isolated hardware and the actual system date/time. This has the advantage of mimicking the real world situation better than modifying ...


0

You can pass the "now" time into the function which verifies the expiry (and obviously also the function which creates the credentials). The test function calls it with a hard-coded time, and the production function calls it with the actual current time. For example (untested): def credentials_valid(credentials, now): return credentials.expiry > now ...


0

I managed to achieve this, but it is a bit complicated. You can't automate the OS specific download dialog, if you could that would be a huge security hole. What I did was to get the computer running the selenium test to pretend to be the client (I was using a selenium grid) and download the file and then check the contents. To pretend to be the client ...


0

Your class locator isn't working because that element has several different classes; they're separated by spaces in the html. If the best way to identify that element on your screen is by checking all the classes, then you can do with a css selector like this: driver.findElement(By.cssSelector("a.btn.btn-sm.blue']")); Notice the dots between the class ...


0

I would suggest using the ActionChains (Actions in Java) class to do so. I tested the above code in both FF and Chrome and I am able to scroll down using the Keys.PAGE_DOWN keystroke. driver.get('http://flipkart.com/') driver.find_element_by_link_text('Bath Towels').click() ...


0

Quickly written block of code that navigates here and logs in using your code and it works. Your problem likely exists elsewhere in your code. static void Main(string[] args) { var binary = new FirefoxBinary(@"C:\FirefoxPortable\FirefoxPortable.exe"); var profile = new FirefoxProfile(); var driver = new ...


1

I tried using image comparison before with Telerik Test Studio. It did the job, but my app at the time changed so much that it was too much effort to update the test with a new image. I am sure there are other tools out there, but I would only go after it if your image will remain fairly static.


0

When I imitate press on CheckBox, TextBox becomes visible, however, sendKeys doesn't work all the time Check out the official documentation on waits. Another problem - while clicking on tabs of page, some can be pressed and it works, and some while being pressed, Selenium just pretends to put "Mouse" on it and link is being showed in the bottom left ...


2

If it is a browser pop-up, you'll need to switchTo() that window. Otherwise (modal/light-box) you shouldn't have an issue finding it in the DOM using DevTools' element highlighter.


1

I try the scroll down with loop, it's great with Python. #!/usr/bin/python # -*- coding: utf8 -*- scroll_time = 13 ... scroll = driver.find_element_by_id("element_name") for num in range(0, scroll_time): scroll.send_keys(Keys.PAGE_DOWN) ...


0

As you're sending emailable-reports while your test is running you're getting FileNotFoundException .Reports get generated only after test execution. EDIT : If you're sending your emailable reports for the test which has already been executed then you will get previous test report as the current test is still running. I have explained about the solution to ...


1

The problem is that you don't switch to opened window, and webdriver searches for elements in the old page instead of the newly opened one. Solution: String winHandleBefore = driver.getWindowHandle(); for(String winHandle : driver.getWindowHandles()){ driver.switchTo().window(winHandle); } This java method's part switches to ...


0

I resolved the error using this SO post.


0

I hope this may be helpful for your programming http://www.codeproject.com/Tips/829663/Perform-Drag-and-Drop-of-Elements-using-Selenium


2

Converting Telerik Test Studio cases into Selenium WebDriver will require a lot of rework, because Test Studio uses completely different technology, framework and syntax for example you find logic expression are different. The only benefit you can get if you have used Nunit in both Test Studio and Selenium WebDriver, as both tools are compatible with Nunit, ...


0

You can opt from a range of locating mechanisms- apart from id. You can use the name, the xpath, the css, tagname, etc. for locating a webelement. Here is a detailed tutorial about locating mechanisms http://www.guru99.com/locators-in-selenium-ide.html EDIT : Here is an example where you can use Xpath to select the checkbox AUT : Heroku App You can ...


0

Although an id is by far the easiest, there are many other options to locate an element on the page. All provided alternatives are listed here, with examples: http://selenium-python.readthedocs.org/en/latest/locating-elements.html



Top 50 recent answers are included