Tag Info

Hot answers tagged

3

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


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.


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


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



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