Hi list,
I am learning Selenium for the first time, using this post as a
tutorial:
http://agiletesting.blogspot.com/2005/03/web-app-testing-with-
python-part-2.html
I am not sure where should I ask this question (here or maybe on
Twisted list?), so please point me to the right direction.
My configuration:
- OS X 10.4
- Selenium revision 611
- Python 2.4 + Twisted 2.0.1 + Twisted web 0.5.0
- Firefox 1.0.4
With a little tweaks (mostly replacing Windows specific things) HTML
mode works great, including proxy http://localhost:8080/AUT/000000A/
http/www.google.com
Now I want to do the same test in driven mode, using Python script.
But the line
print app.open('http://localhost:8080/AUT/000000A/http/www.google.com/')
causes this error on the server:
--- <exception caught here> ---
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/server.py", line 152, in process
resrc = self.site.getResourceFor(self)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/server.py", line 507, in
getResourceFor
return resource.getChildForRequest(self.resource, request)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/resource.py", line 50, in
getChildForRequest
resource = resource.getChildWithDefault(pathElement, request)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/resource.py", line 150, in
getChildWithDefault
return self.getChild(path, request)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/static.py", line 277, in getChild
return resource.IResource(processor(fpath.path, self.registry))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/web/script.py", line 70, in
ResourceScript
execfile(path, glob, glob)
File "/Users/ksenia/Code/selenium/code/python/twisted/src/selenium/
selenium_driver/driver.rpy", line 14, in ?
interpreter = registry.getComponent(SeleniumInterpreter)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/python/components.py", line 597, in
getComponent
adapter = interface.__adapt__(self)
exceptions.AttributeError: class SeleniumInterpreter has no attribute
'__adapt__'
Appreciate any help,
--Ksenia
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users