Tag Info

Hot answers tagged

3

To create an instance of a browser when running WebDriver test you need to create an a driver specific to that browser. Firefox works by default, but to work with other browsers such as chrome you may have to download the driver separately. https://code.google.com/p/selenium/wiki/ChromeDriver This is website will give you information on how to install ...


3

No, Selenium 2 / WebDriver is for web applications only. But there are other tools to automate desktop application GUI tests. http://en.wikipedia.org/wiki/List_of_GUI_testing_tools You can also search for "desktop application" on this site to find recommended tools.


2

While working on several projects I've described the following procedure to install Appium: Download Android SDK https://developer.android.com/sdk/index.html Extract Android SDK to /usr/local/adt/ unzip -qo adt-bundle-*.zip -d /usr/local/adt Set ANDROID_HOME and JAVA_HOME environment variables export JAVA_HOME=$(/usr/libexec/java_home) export ...


2

The most efficient tool for testing the appearance of a website is still the human eye and brain. That said, if you want or need to automate, image comparison is probably the least effective method because even with fuzzy logic it can generate far too many false positives. All it takes is a change in hardware (a different monitor or video card - this will ...


1

In your test environment, you need your developers to enable some way of bypassing the captcha. You need to make sure that is only available in your test environment. There are a lot of ways of doing it, commonly it is you typing in a specific string that is recognized by the system to bypass it.


1

Try using SIkuli it can automate anything , since it uses Image recognition http://www.sikuli.org/


1

Something like this should work: public boolean isTextOnPagePresent(String text) { WebElement body = driver.findElement(By.tagName("body")); String bodyText = body.getText(); return bodyText.contains(text); } Currently I have no possibility to test that. If it should not work, you could try to use getPageSource() instead of get the text of the ...


1

TL;DR: Neither. Use ID or name. I strongly disagree with @Jon Duffy. If your CSS designers are up to snuff, they will create custom class names for the elements, so even if elements are moved around (XPATH changes), the class name itself stays the same. Even if CSS classes have different definitions, the name itself is the same. Also, location by CSS is ...


1

Been the manual QA, moved to automation over 15 years ago. Can now code in Java, C#, C, Python, etc, etc... written automation tests in more tools/languages than I care to remember. Trust me when I say learn Python and WebDriver. You will be productive with this combination faster than any other, and since you are learning as you go, your employer will ...


1

Approach 1 Create a class, for example Hull. In the cass is a protected variable WebDriver driver. In the class is a method setup() with a @Before annotation. In the method you has a condition: Is WebDriver null, initialize; else do nothing. Classes with test cases extends from Hull. Classes with test cases can use the variable driver. Approach 2 ...


1

I have to disagree with Twaldigas on point three: 3.) I understand the concept of creating scripts to perform tasks, but I've read re-creating my manual tests as scripts isn't the direction I should be headed. What types of tasks should I be looking at to automate? You should automate manual tests. First of all automate the regression tests. ...


1

1.) Having no knowledge of programming languages, which is the strongest language for automated QA? In general nobody can answer this question. It depends on what you want to auomate and what tool or framework you use for that. Like B. Berndsen says, if you want to use Selenium 2 / WebDriver to develop GUI tests, I also advise Java. But other languages ...



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