Tag Info

Hot answers tagged

5

As @Niels van Reijmersdal mentioned, it makes sense to use the language in which you have local experts available. But you don't have to use the same language - use the language in which your team will be more productive. Python and Ruby are almost identical in expression power. I would argue that Python is more readable, which is significant advantage when ...


5

Do you need Selenium for this task? If you have an existing suite of Selenium tests, you can run them against the new site to verify the functionality is working, but in general Selenium is not the best tool for validating look and feel, or massive amounts of content. There are several link checker tools that will crawl all of the links and download all ...


4

I am the author. Actually this is a patch-like binding. You should know what I said in step 2. You need to download the source code of official Python bindings for Selenium and then copy my patch to the source files and install the patch source code, as mentioned in step 3 and 4.


3

It seems you may not be accustomed to piping. No worries, it was new to everyone at some point. By using the shell to call your tests, you're mostly there already. A key thing here is that anything that get's written to your terminal can be "piped" into a file that you name. If you are seeing those results in your terminal, then you can route them to a ...


2

At least on http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.5#getting-started is nicely detailled installation instructions.


2

I think this is a general Python programming question rather than a test question. As a general programming practice, it is a good idea to give a constant a name, especially if the constant is used more than once. How you manage those names depends on your goal. You might do this: XPATH = "xpath" CSS = "css" SELECTOR_TYPE = "selectorType" SELECTOR = ...


1

Well it depends on what you set up, in my environment I had Python, Java, PiP and EasyInstall loaded then it was simply a matter of running: pip install robotframework But it's simple enough to find the instructions on the Robot Framework site and check out the link to the Installation Instructions. The Robot Framework site has links to examples as well, ...


1

You might try WTFramework It seems like a decent starting place for python test infrastructure. I didn't end up using it because my tests ended up using more php and javascript. There are examples of using the page object design pattern.


1

To play a devil advocate, if you try Python, you will find that you are substantially more productive because of dynamic typing. Python just works much harder to improve productivity of the programmer, as compared to C# which is focused to create effective code (making programmer to work harder to get it). In testing, it is of little difference if test ...


1

First of all: Welcome to SQA. Apart form the features of C# and Python, your team should also use C#. The web testing team can reuse scripts from the automation team. The teams can support and complement each other. They can talk about problems and challenges and find solutions together. That Python already have a xUnit framework in the standard library is ...


1

I eventually managed to find a fix for this! Here is the code that I added: cap = DesiredCapabilities.INTERNETEXPLORER cap['requireWindowFocus'] = True cap['enablePersistentHover'] = False I put this just before self.browser = webdriver.Ie() Although, this may not be a long term solution as it requires the IE window you are using to be your current ...


1

Do you have a single monitor? Is your actual mouse cursor hovering over the page while your automation is running? Sometimes your mouse will mess up the automation that is running. If you have a second monitor, or if you can move your mouse cursor outside of the bounds of the browser window, do you still have the problem? In javascript there isn't a ...


1

The problem seems to be that homebrew doesn't have an obvious way to install both 3.3 and 3.2 and a somewhat extended Googling did not yield an answer. — Try the following solution to install multiple Python 3.x versions with brew: Make sure you don't have any Python 3.x installed: brew uninstall python3 Then cd into your brew directory, this is ...


1

In my opinion it's better to develop with the tools and languages that you love. Here are good Selenium recipes, code examples & API references for Ruby: http://samples.leanpub.com/selenium_recipes-sample.pdf https://code.google.com/p/selenium/wiki/RubyBindings http://rubydoc.info/gems/selenium-webdriver/2.2.0/ (the right top corner)


1

You should be able to use the solutions outlined in this similar question on StackOverflow: driver = webdriver.Firefox() element = driver.find_element_by_id("fileUpload") element.send_keys("myfile.txt") This should allow you to interact with the file upload without automating the dialog box. If you do need to interact with the dialog box, you'll need to ...


1

Since you are looking into Selenium (as a test framework) start with Java, because Googling on "Selenium/Webdriver issue description" will often result in Java examples that you can re-use. There is just more people doing Selenium with Java then Python. Also Selenium it-self is mainly written in Java. For a project I would learn the language the application ...


1

It depends from software development branch you want to come. But I suggest you to learn Java because this is one of the most popular language at nowadays (http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html). If you will learn Java you shall develop tests for Desktop, Web and Android. Also I suggest you to learn Python, Shell, Javascript - they ...


1

When you instantiate Selenium set the full path to the Firefox install you want to use instead of just using "firefox" which will use the defaul path. def setUp(self): self.selenium = selenium("localhost", 4444, "*firefox C:\\Program Files\\Mozilla self.selenium.start()


1

It is getting the title of the web page and seeing if it has Python in it. How much HTML do you know?


1

Selenium is not able to interact directly with OS functionality. So unless there is some backend service that allows you to create the connection through the browser somehow you can't use Selenium for this. Options: Write custom code to do this outside of selenium and then put it in the middle of your test Utilize another testing tool at least for the ...


1

I'm a fan of the Udacity classes: Computer Science 101: uses (and teaches) Python basic CS concepts, while building a search engine: https://www.udacity.com/course/cs101 Software Testing: Teaches testing, by writing Python test code https://www.udacity.com/course/cs258


1

It is not compulsory to learn Python or Java for Automation but it would be better to know Java concepts(or python concept if using python in Automation) and basic fundamental of language. If you need to know and understand core of framework like selenium or testNG then you should have good knowledge of Programming language knowledge.


1

You can potentially speed it up using various ways: Implicit wait This is mentioned by tstempko. However, implicit wait has a drawback. This makes the driver to not waiting for all UI element when it is set to '0'. In your case, it is not ideal. There might a time that you really have to wait for UI element to show up, then your test will break for no ...


1

The test is slow not due to slow exception handling, but because driver waits for elements thats are not found. In this case driver waits for the pop-up - maybe it will appear. Try to use self.driver.implicitly_wait(0) This will tell driver not to wait if it cannot find some elements.


1

@Praveen: your problem lies with the way you have authenticated to the website. You cannot just put the s.auth in request and hope it will work. The website probably is not using HTTP-Basic Auth. This is how you should do it (on windows machine): List item install a HTTP/Web tracer (Fiddler is available here: http://fiddler2.com/) The site is in HTTPS, ...


1

firefox(2194): Operation not permitted This message indicates that your script has attempted to kill a firefox process that is owned by another user, or has been blocked by something like SELinux. Try running this command as administrator or root before running the tests again. I would further speculate that the user running the tests is not the same ...


1

Your code array_method1 above does not return anything hence it returns None so you can not iterate through it with the line: for test in self.array_method1(product): array_method1 needs to return like: self.product = product if product == "First": result = ['A','B','C'] elif product == "Second": result = ['C','D','E'] else: ...



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