I am getting the following errors when running a basic Selenium test script in Python:
======================================================================
ERROR: test_untitled (__main__.TestTesting)
----------------------------------------------------------------------
Traceback (most recent call last):
File "TestTesting.py", line ...
I would like to scrape some dynamic data off of a website.
On the site, there are a couple of links at the top labeled "1", "2", "3", and "next". If a link labeled by a number is pressed, it dynamically loads in some data into a content div. If "next" is pressed, it goes to a page with labels "4", "5", "6", "next" and the data for page ...
Is it possible to test a webpage which supports an export mechanism? This export mechanism streams the data displayed in a table via xml to the user. For now it's sufficient to test if the streaming works and the user receives a file, regardless of the file content. Any ideas how I can achieve this with selenium?
...
So I'm trying to verify the pop-ups occur in my Selenium 2 functional tests. Right now there seems to be no built-in way for selenium 2 to handle these. Is there a way to create C# code that will notice an alert, and simulate hitting the "Enter" key?
...
I just added ExceptionHub (a javascript error tracking service) to our website, but all my selenium tests are failing now. When I look at the selenium output, it says it timed out in waitForPageToLoad command. If I run the test locally, I see that the page loads up fine, so I'm not really sure why selenium keeps waiting. Has anyone else ...
Is there any way in either Selenium 1.x or 2.x to scroll the browser window so that a particular element identified by an XPath is in view of the browser? There is a focus method in Selenium, but it does not seem to physically scroll the view in FireFox. Does anyone have any suggestions on how to do this?
The reason I need this is I'm t...
i'm use selenium. i use it by using firefox plugin. but i have problem to utilize it. For example, i need to make a 100 post(I need them has different title, range from 1-100) without i have to copy-paste previous command and change its property value
i'm sorry if my description is too vague. In nutshell, it's about how to create unit s...
I'm new to all of this but I've learned a few things about python not long time ago, could you help me specify the correct the XPath for selenium to click?
I've tried this way, but didn't work, obviously :(
self.selenium.click("xpath=//html/body/div/div/div/div[4]/ul/li[3]/a")
If you're wandering where did i get that ugly XPath, it's...
Hey guys, I am using Selenium RC to do some test now. And the driver I use is python.
But now, I faced a problem, that is: every time Selenium RC runs, and open a url, it opens 2 windows, one is for logging and the other one is for showing HTML content. But I can't close them all in script.
here's my script:
#!/usr/bin/env python
#-*-c...
I'm doing a test suite in python based on the code provided by selenium and i get strange assertion errors when checking for the actual page like this:
sel.click("link=Overview")
sel.wait_for_page_to_load("30000")
self.assertEqual("Naaya testing - Subtitlu testare", sel.get_title())
sel.click("link=Portal properties")
sel.wait_for_page...
What's the best way to activate firebug in firefox when running Selenium 2 ?
Edit: Ok, I realize "best" is open to interpretation, but the profile-based solution really used to be a pain with selenium 1.0. So any alternative is considered better until proved worse ;)
...
Does anyone know if it's possible to take a screenshot using Selenium WebDriver? (Note: Note Selenium RC)
...
I'm testing a jtree made in zope that needs to be clicked with right_click, i know that the command for left click with selenium in python is selenium.click ,but i don't know any for right_click ,can anyone help me please.
i would love to know if there is a solution in python not another languages please.
...
I'd like to know if there's programmatic, automatic, BDD-aware way to test how CSS is rendered in different browsers, just like Selenium can automatically test HTML and Javascript in different browsers. Integrating it with a BDD framework would be ideal.
...
I need to test, with Selenium or a similar Ruby-aware automated testing tool, how my webapp behaves on iPhone's mobile Safari and on Android browser. How can I do that ?
...
I am trying to do something conceptually simple...
We have multiple portlets loading on a Dashboard. I need to measure the load time that each takes. I have implemented a simple StopWatch class, and need to run multiple instance of it simultaneously, for each portlet, while the Dashboard is loading.
So the parameters supplied will be - 1...
Just using selenium to fill out some forms for me. I need it to generate a unique value for my username field. How can I do that?
I've got
Command: type
Target: id_of_my_field
Value: username+unique_value ???
...
I need to test, with Selenium or a similar automated testing tool, how my webapp behaves on iPhone's Mobile Safari and on Android browser. How can I do that?
I usually test my app by hand setting Safari 5 with User Agent = "Mobile Safari", I used iPhoney as well but it's too buggy IMO.
...
Firefox runs, but when the tests finish executing Firefox stays up.
This is on Debian Linux with Firefox 3.6.
...
I am currently developing several test suites using Selenium IDE. The tests will be run as part of our CI server using Selenium RC though.
I am defining JavaScript functions in 'user-extensions.js' to generate random test data.
The issue I am running into is that when I export the recorded test to C# it will comment out the call to ...