Tag Info

New answers tagged

0

I am needing the same thing. I would like my test case to generate a new email id every time it runs. for example, xyz@abc.com, then the next time when it runs it should generate xyz1@abc.com, xyz2@abc.com and so on and so forth. Below is my code: int i = 0; for(int count=1; count < 2; i++){ ...


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

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


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


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


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 it turned out, Internet Explorer 11 disable to read pac file pointing to them as a file:///. The problem solved by transferring the file to an internal Web server and pointing to it as http link


0

I hope below given points may help you strong to see how this can be done: Find a web page which contains a broken image. Or you can create in your local system. Open your class file and write a code to locate an image such as below. You can use different image attributes(Eg. alt, name etc.) to locate image using XPath. WebElement ImageFile = ...


2

If you are testing for a specific image at a specific resolution then you could either compare the image with the reference image or quicker calculate the MD5 of the image and compare it with the expected. Be sure and wait for the page to be loaded, including images, before validation.


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

There are many ways to download file in Selenium, one of the easiest way in Firefox using Firefox Profile. First add preferences in profiles and specify the MIME type of file and then you can open firefox with above preferences. I found below article interesting which cover above scenario ...


0

I had used browsermob-proxy and its Python client successfully in one of my project by using rewrite url to load mocking content. browsermob-proxy is a proxy server for the browser to connect with during testing. Assume you are hosting a webserver with mock content on localhost:8899, below example will load the mock content whenever the browser try to load ...


1

Try out Galen; it's designed for testing responsive web design across different platforms and different sized viewports, so its all about how web elements are laid out on screen: Layout testing seemed always a complex task. Galen Framework offers a simple solution: test location of objects relatively to each other on page. Using a special syntax and ...


0

Does anything change on the page when the file has loaded? If it does then explicitly wait for that change to occur. I've got a packaged method in my common library that I employ in these situations (packaged so I don't need to write the entire code each time) with a default timeout set to a value that I'd reasonably expect the action to be completed ...


0

Every WebElement has a getLocation() method. You can get X and Y of the first element, then get X and Y of another element. After that just compare them to check which element is going first, and which is going next.


1

Don't use Thread.sleep or ImplicitlyWait. The best way to wait something is explicit wait. Try to use new WebDriverWait(driver, 60).until(new ExpectedCondition<Boolean>() { @Override public Boolean apply(WebDriver webDriver) { return // check if file downloaded } ...


0

Are you creating object for the RemoteWebdriver class and setting the capablities for the firefox browser and chrome browser, on which you want to run the tests ex:RemoteWebDriver driver=new RemoteWebDriver(); capability = DesiredCapabilities.firefox(); Pass the capability object to the driver.



Top 50 recent answers are included