Deformdemo : selenium tests questions

27 views
Skip to first unread message

tonthon

unread,
Jul 13, 2012, 8:16:09 PM7/13/12
to pylons-...@googlegroups.com
Hi,

Trying to provide a pull request to correct :
https://github.com/Pylons/deform/issues/103
I'v launched the selenium tests provided by deformdemo.

The actual AutocompleteInputWidgetTests.test_submit_filled fails
(running selenium-server-standalone-2.24.1).

The actual code is :
"""
browser.type('deformField1', 'bar')
browser.type_keys('deformField1', 'bar')
import time
time.sleep(.2)
self.assertTrue(browser.is_text_present('bar'))
self.assertTrue(browser.is_text_present('baz'))
"""
Obviously when typing bar, I don't expect baz to come out.
And here, bar is typed two times resulting in a barbar text which can't
be autocompleted.

New to selenium, maybe I misunderstand something, but using the following :
"""
browser.type_keys('deformField1', 'ba')
"""
allows the test to run ok.

Any advice ?
Should I provide a patch ?

Regards

Gaston






Reply all
Reply to author
Forward
0 new messages