New answers tagged

1

If your application doesn't provide an interface for object based UI automation (such as MS UIA), which seems that's the case for you, and if you can't follow Andy's very correct suggestion; then you should look for an image processing based tool. Sikuli is the first that comes to mind, being open source and very successful (and probably being used by some ...


2

Yes. You can create an application to run your test scripts, when you create your test projects they are just libraries/dlls that you have created and they do work just like any other library/dll. add to references and you should be able to call specific tests and get their pass/fail value when they are finished.


0

It will be difficult to maintain SeeTest automation using POM because if we declare all the paths like public static By launchpad_button = By.xpath("//*[@id='text']"); but the commands in SeeTest are like below driver.client.elementSendText("NATIVE", "xpath=//*[@id='text']", 0 ,"Testing"); So you need to add xpath again while using SeeTest commands ...


0

I hope this might help public void waitForPageLoad(WebDriver driver){ ExpectedCondition<Boolean> expectation = new ExpectedCondition<Boolean>() { public Boolean apply(WebDriver driver) { return ((JavascriptExecutor)driver).executeScript("return document.readyState").equals("complete"); } }; Wait<WebDriver> wait = ...


0

An element you interacting become stale when it is destroyed and recreated. Hence when page refreshes, every element in that page become stale. So we can check if the page is refreshed by waiting for an element in that page to become stale. The following Java code illustrate how it is achieved using Selenium webdriver. If the page is not refreshed in 30 ...


0

You can make use of window.sessionStorage. You can ask development to define an pre-defined object, for example reloadflag="true". You will check the value for true with window.sessionStorage.getItem("reloadflag") After each check you have to set the value to false with window.sessionStorage.setItem("reloadflag", "false") If you do not have possibility ...


1

Ask development to place a HTML comment that has the timestamp, e.g. <!-- 06-jan-2016 08:09--> or add it to the actual page so that tools that have access to the full dom can easily access it, but make it not display on the browser <div display:none">06-jan-2016 08:09</div> If it has to be present but not visible then <div ...


3

One possible way is to force a change in a parallel session or in the database with a script. Then you can keep polling for some seconds until the new data becomes visible. I would expect the feature is not to refresh the page, but to refresh to show new data. Test the feature, not only the known behavior, thus test why the page refreshes instead. Ask ...


0

In my opinion, the best way to get into the mobile testing world is to use Experitest's tools. They are very easy to use (you can learn how to use the tools in about a week, or less) and they cover pretty much everything you need including manual and automation tests.


1

I would suggest you not to bind any particular automation tools to your testing. Which means that at the test framework level, you need to have a shared layer as the interface to the test automation developers. While underline framework development could use any automation tool which works fine with different kinds of applications like web and win form. In ...



Top 50 recent answers are included