Hot answers tagged selenium2
Some good Selenium tutorial for beginner/Intermediate/Advance are given below : 1 - ToolsQA 2 - Guru99
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 ...
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.
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 ...
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 ...
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