Tag Info

Hot answers tagged

4

Recording tests often leads to hard to maintain tests, therefore most experienced testers prefer hand coding automated tests over recording. Automated tests often cover the same area multiple times, in order to setup data, or for example navigation. When a central part of the application changes this could result in multiple tests failing, all these tests ...


3

Test Automation is an extremely broad subject. It doesn't just mean performing regression testing or load testing with a specific tool, although that's often what employers want (it's easy to identify). The ability to create specific programmatic solutions to help you test is hugely valuable. Over the years automation tool vendors have tried to make the ...


2

WebDriverJs is just the driver to control the browser. For the tests itself I recommend a JavaScript based testing framework like QUnit or Mocha. The test framework take care of the test reports. Mocha is also mentioned on the WebDriverJs wiki page. You can find more information about how the reporting works on the official websites. QUnit: Bottom left of ...


2

Quickly glanced over the properties and methods of IWebElement, doesn't look like they can set values. However, you can easily execute some javascript snippet to change HTML in your page. IWebDriver driver; IJavaScriptExecutor js = driver as IJavaScriptExecutor; js.ExecuteScript("document.getElementById("title").innerHTML = "New text!";"); You might need ...


1

I believe that you should uncheck "Install Maintenance Service" box during Firefox installation, in that case you should be protected from automatic updates. Also avoid opening "About Firefox" window as Firefox is known to update itself when you open it. In regards to what version of Firefox is supported, as per Using Selenium with JMeter's WebDriver ...


1

I made your code readable. Please do that from now on. Your flow is as follows... if span[1] is not selected then click span[1] else if span[2] is not selected then click span[2] Please clarify what precisely is happening so we can help you properly. EDIT As I mention above your second part is checking if span[2] is not selected... If Element 1 ...


1

This was a bug in the latest version: https://github.com/detro/ghostdriver/issues/394 Either you build your own executable with the hint provided, or wait for the fix (or use an earlier build).


1

The thing that helped me sometimes in such cases is to evaluate the state of JQUery: http://stackoverflow.com/questions/20414729/webdriver-wait-for-jquery-to-finish But of course if you use another library, it becomes tricky. Additionally you can try to wait for the change you expect at the element, such as the added or removed class or the added content ...


1

I think I can point you in the right direction for MS Word, at least. You can use the Office Interop Assemblies in C#. Here is an example from .Net Pearls: using System; using Microsoft.Office.Interop.Word; class Program { static void Main() { // Open a doc file. Application application = new Application(); Document document = ...


1

This load test article is a great walkthru for your scenario - http://www.mkyong.com/unittest/testng-selenium-load-testing-example/


1

Try the Selenium Builder: http://sebuilder.github.io/se-builder/ Record your steps Open web-page Click login button Select window Fill in fields Submit Export recording as code to Java or Python Also read other questions like "How does one get started with web test automation using Selenium?" or Google for some training video's to get you started.


1

You can look at this implementation in github. The code is written in c# using selenium, web driver. It implements Page object model https://github.com/sham332/CSharpSelenium



Only top voted, non community-wiki answers of a minimum length are eligible