Tag Info

New answers tagged

1

What I'm getting from your description of problem is that you have a website developed in C# and need to test it. If you're thinking of writing tests, using Selenium, then it shouldn't matter which language your website is developed. You can have a website developed in C# and still use Python/Java code to write Selenium scripts and then test it. This is ...


1

You could, but you shouldn't. You can just create tests in Visual Studio. Just use the Selenium NuGet packages and write the tests in C#. This beats having two development envs, one for the app and one for the tests. Here is an getting started guide: http://automatetheplanet.com/getting-started-webdriver/ Or this older one without the NuGet package, but ...


0

You can go for below mentioned links too, they contain good stuff for Intermediate and Advance level: Selenium Easy SoftwareTestingHelp (I myself use this link as it explains concept in a very good manner) If you need videos for learning Advance Selenium then you can go for QTPSelenium it's not free but very good stuff (if you require this)


-1

Have you checked on youtube. There are enormous resources out there on various topics. I can share one link here about https://youtu.be/vcT4Ic5pbEA https://youtu.be/3crs-xBnkxc


3

Some good Selenium tutorial for beginner/Intermediate/Advance are given below : 1 - ToolsQA 2 - Guru99


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

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

It is a good programming practice to type the variable to be the the least-specific subclass that you actually care about. That way, your code is more reusable. In your case, if you actually need to call methods on FirefoxDriver that aren't defined on Webdriver, you should type Some_Variable to be FirefoxDriver. If you don't need to do anything ...


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.


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

I found out that you can filter tests in the Default.srprofile, for example <Filter>@myTag</Filter> will only run tests with the tag @myTag. More info is provided here: http://www.specflow.org/media/specrun.html#US18



Top 50 recent answers are included