Tag Info

New answers tagged

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 ...


0

This is a sample of working code - selecting sex by male and female radio buttons. /* load that webelement list of radio buttons. then follow the below code & logic List<WebElement> rdBtn_Sex = driver.findElements(By.name("sex")); // Create a boolean variable which will hold the value (True/False) boolean bValue = false; ...


0

Use the Actions object to open a new tab. Perform a action who press and hold the ctrl key and after that press the t key. After that release all keys. ctrl and t is the shortcut to open a new tab in the most browsers. To switch between the tabs you use the following shortcut: ctrl and TAB.


0

Visual regression testing is getting a momentum as far as I can see. I started to collect information and do some basic testing with some of them. Here are a couple of places/tools you could check: Thoughtworks radar section on those tools: "This has given rise to a variety of visual regression testing tools, including CSS Critic, dpxdt, Huxley, ...


0

We have started to trial this - http://code.google.com/p/qualitybots/ A project from the Google test team, it's quite a good blog to read. Although at the moment, we heavily test using crossbrowsertesting.com and saucelabs. We split the testing of our websites on different browsers in to three different categories. Functional - Ensuring key process and ...


0

Must say never had success with this using an automated approach. In the end always ended up using in cash terms more expert resource than cheaper eye ball resource. The problem with the last project where I saw this tried was the environment and application changes just came too quickly to gain from unchanged repeated testing; despite the client thinking ...


1

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


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 ...


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.


0

System.setProperty("webdriver.chrome.driver", "E:\\Softwares_Must_Have\\sele\\chromedriver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); this is the syntax to locate the third party driver,. you have to download the driver. then you have to initiate and call it.. thanks Prakash and am new to stackexchange..


0

This should work: class Hull { protected WebDriver driver; @BeforeMethod public void initializeDriver() { // Initialize the driver here. } } class ClassWithTestMethods extends Hull { // Test methods with @Test annotation. // Use the driver variable of Hull in the test methods. } The initializeDriver method should always ...


0

package mercuryreg; import java.util.regex.Pattern; import java.util.concurrent.TimeUnit; import org.junit.*; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; ...


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 ...


0

Css is liable to change; UI tweaks, making a site/app responsive etc. By choosing to target elements XPATH the tags will likely stay around much longer and therefore requires less maintenance on your tests. If your site / app is generated using a framework you can have the XPATH targets generated in the back end and maintain some separation from the more ...


0

A quick google got me this -- http://stackoverflow.com/questions/1707884/selenium-rc-how-to-upload-file-using-attachfile Please edit your question to describe what research/steps you have taken in your attempt to overcome your problem.


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 ...


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 ...


0

If I understand correctly, it sounds like you have a test that clicks on a hyperlink that will then close the current window and open a new one? If that is not correct, please add more details. In order to instruct Selenium to use the new window, you need to use: selectWindow(windowID) The windowID would be the title of the window.


0

Instead of the Selenium IDE version look at the Selenium Builder to record and convert tests into code. There is a full video tutorial for setting up Selenium, Java, Maven and an IDE to start building and running tests.


0

OP: Try Python for afternoon, and you will see how much more productive you will be in Python than in Java. Especially if you don't have comp science education. Java is popular because it is "standard" - it does not mean it is a good fit for programmer, especially for beginner. To answer your questions: 1.) Having no knowledge of programming ...


0

Instead of simple System.out.println (last line in your example) try out the following: PrintStream out = new PrintStream(System.out, true, "UTF-8"); out.println("Currency Selected:" +select.getText());


0

Thanks for your responses finally I solved it cutting out some plugins and blocked some third party ads before starting the tests. Solution 1: There are some plugins like flash player which may hangs the browser inconsistently waiting for some resource during test run, try disabling such plugins while starting the test using the chrome switches. ...


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 ...


0

Skill up to JAVA - Head first java is an excellent option Move onto Selenium Webdriver Some resources to help you: jroller.com/selenium/#tutorial university.utest.com/selenium-basics-part-1-how-to-set-up-selenium qaselenium.blogspot.in software-testing-tutorials-automation.blogspot.in selenium143.blogspot.in


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. ...


0

I found that Microsoft`s Visual studio really easy to get into its automation tools. Started with the simplest of them, Web Performance and Load tests. These are really easy to get your fingers arround and there are plenty resources/tutorials to help you on your journey. After I got comfy with these I went to CodedUI and by trial and error for a couple of ...


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 ...


0

I would start learning Java. The reason for that is that most Selenium/Webdriver lessons and books are written with Java in mind. That said, there are some really good guides and tools for Selenium and Python(holmium.core is a really nice framework to build robust automation suites with Webdriver). I'm sure there are tools and guides for other langues as ...


1

It sounds like the majority of your issue is in creating the connection to your Database. However, you lack to mention the type of database so I will try and cover some of the more popular ones. Oracle Tutorial or SO Question SQL Server JTDS I could list all of the types of databases for years so here is a list of database related tutorials. If you need ...


1

Like Josa Pita says, that is nothing for testing frameworks itself. The developers could write a script to save the current version of the DB. The process should look like that: Save current version of DB/any kind of data storage. Start test run. After test run finished restore the saved version of the DB/any kind of data storage. But I think it is ...


0

In our application we are using web-services and DB, is it possible to integrate Selenium webdriver with web-services (Soap UI)? Since this is in Java, yes it is possible to interact with SoapUI using the test runner or by importing SoapUI into Java and running it as a background task. If two different frameworks are integrated, whether this is ...


0

From what I understand from your question, you want to delete the records of the actions you made on your app? This has nothing to do with selenium or testng, you need to have an app for tests only, with a clean DB, that you can delete the records from your actions. Is this helpful?


0

TestNG provide a lot of annotations for thinks like that: @BeforeTest, @BeforeSuite, BeforeGroups and more: http://testng.org/doc/documentation-main.html#annotations It may be look like that: @BeforeTest public void setup() { // open your popup and click on the link } @Test public void test() { // test case } @AfterTest public void tearDown() { ...


1

To play a devil advocate, if you try Python, you will find that you are substantially more productive because of dynamic typing. Python just works much harder to improve productivity of the programmer, as compared to C# which is focused to create effective code (making programmer to work harder to get it). In testing, it is of little difference if test ...


0

Disadvantages of using C# in one team and Python in the other include cost of training and cost of learning. If one team finds issues and wants the assistance of the other there will be challenges with explaining the subtle features of the language used for the test. New members on either team will need some training. Using two languages will mean two ...


0

Adding something to @Twaldigas reply, why / who has recommended that you use python? It makes perfect sense to me that you use the same language as the development and automation team, this way, if you have some problems, I'm sure they have already solved it in the past. Plus, if the automation team already has a framework built on top of selenium, maybe ...


1

First of all: Welcome to SQA. Apart form the features of C# and Python, your team should also use C#. The web testing team can reuse scripts from the automation team. The teams can support and complement each other. They can talk about problems and challenges and find solutions together. That Python already have a xUnit framework in the standard library is ...


1

I eventually managed to find a fix for this! Here is the code that I added: cap = DesiredCapabilities.INTERNETEXPLORER cap['requireWindowFocus'] = True cap['enablePersistentHover'] = False I put this just before self.browser = webdriver.Ie() Although, this may not be a long term solution as it requires the IE window you are using to be your current ...


1

Do you have a single monitor? Is your actual mouse cursor hovering over the page while your automation is running? Sometimes your mouse will mess up the automation that is running. If you have a second monitor, or if you can move your mouse cursor outside of the bounds of the browser window, do you still have the problem? In javascript there isn't a ...


0

Try this: var dfs = driver.FindElement(By.XPath("//table[@id='PowerReserveTables2_0']/tbody/tr/td[6]/div")).Text.split("<br></br>")[1].trim();


0

Find Sauce Labs example here: http://saucelabs.com/resources/selenium-resources-for-newbs-data-driven-testing-with-ide-xml Below is a content from the article: Download the flowcontrol extension for IDE. (“Download” is a bit of a misnomer here, as the download link takes one to an HTML page. Simply copy/paste only the JavaScript contents of that ...


1

You can easily perform data driven testing via Selenium IDE by the use of DataDriven and FlowControl plugins. Please find detailed instructions in this Sauce Labs article. Below is the quote from that article: Download the flowcontrol extension for IDE. (“Download” is a bit of a misnomer here, as the download link takes one to an HTML page. Simply ...


1

WebDriver is quite more reasonable option anyway. Everything you can automate with Selenium RC, you can do with Selenium WebDriver. If you can't perform some action with native methods (like yours "Being able to click on hidden links within sub-menus"), you can achieve the same with executing JavaScript commands from WebDriver. Selenium WebDriver will ...



Top 50 recent answers are included