corey@lenovo:~/sst/selenium-simple-test$ ./sst-run --test file_input -b Chrome
----------------------------------------------------------------------
waiting for django to come up...
django found. continuing...
----------------------------------------------------------------------
test_file_input (sst.runtests.TestFile_Input) ...
Starting Chrome:
Going to... http://localhost:8000/
Waiting for get_element
Writing to textfield 'file_input' with text '/home/corey/sst/selenium-simple-test/src/sst/selftests/file_input.py'
ERROR
Stopping browser
======================================================================
ERROR: test_file_input (sst.runtests.TestFile_Input)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/corey/sst/selenium-simple-test/src/sst/runtests.py", line 249, in test
exec self.code in context
File "/home/corey/sst/selenium-simple-test/src/sst/selftests/file_input.py", line 15, in <module>
textfield_write('file_input', file_path)
File "/home/corey/sst/selenium-simple-test/src/sst/actions.py", line 384, in textfield_write
textfield.send_keys(new_text)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 146, in send_keys
self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing})
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 194, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 144, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 100, in check_response
raise exception_class(value)
WebDriverException: Message: '{"sessionId":"b99a9583ce0bb893d1ddff758084e895","status":400,"value":{"message":"The element can not hold multiple files\\nBacktrace:\\n\\tbase::debug::StackTrace::StackTrace() [0x457e9e]\\n\\twebdriver::ElementValueCommand::DragAndDropFilePaths() [0x4465ac]\\n\\twebdriver::ElementValueCommand::ExecutePost() [0x4469cd]\\n\\twebdriver::internal::DispatchHelper() [0x439304]\\n\\twebdriver::Dispatch\\u003C\\u003E() [0x429fe7]\\n\\tanalyze_request [0x436f98]\\n\\tprocess_new_connection [0x438392]\\n\\tworker_thread [0x438631]\\n\\tstart_thread [0x7f4c1a168d8c]\\n\\t0x7f4c1505b04d\\n"}}'
----------------------------------------------------------------------
Ran 1 test in 2.370s
file_input.py test works on Firefox, but not with Chrome (using Chromedriver).
using: linux64_ 14.0.836. 0 (latest)
chromedriver_
chrome 15.0 (beta)
output:
corey@lenovo: ~/sst/selenium- simple- test$ ./sst-run --test file_input -b Chrome ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- TestFile_ Input) ... localhost: 8000/ corey/sst/ selenium- simple- test/src/ sst/selftests/ file_input. py'
-------
waiting for django to come up...
django found. continuing...
-------
test_file_input (sst.runtests.
Starting Chrome:
Going to... http://
Waiting for get_element
Writing to textfield 'file_input' with text '/home/
ERROR
Stopping browser
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= TestFile_ Input) ------- ------- ------- ------- ------- ------- ------- ------- ------- corey/sst/ selenium- simple- test/src/ sst/runtests. py", line 249, in test corey/sst/ selenium- simple- test/src/ sst/selftests/ file_input. py", line 15, in <module> write(' file_input' , file_path) corey/sst/ selenium- simple- test/src/ sst/actions. py", line 384, in textfield_write send_keys( new_text) lib/python2. 7/dist- packages/ selenium/ webdriver/ remote/ webelement. py", line 146, in send_keys _execute( Command. SEND_KEYS_ TO_ELEMENT, {'value': typing}) lib/python2. 7/dist- packages/ selenium/ webdriver/ remote/ webelement. py", line 194, in _execute execute( command, params) lib/python2. 7/dist- packages/ selenium/ webdriver/ remote/ webdriver. py", line 144, in execute error_handler. check_response( response) lib/python2. 7/dist- packages/ selenium/ webdriver/ remote/ errorhandler. py", line 100, in check_response class(value) :"b99a9583ce0bb 893d1ddff758084 e895"," status" :400,"value" :{"message" :"The element can not hold multiple files\\ nBacktrace: \\n\\tbase: :debug: :StackTrace: :StackTrace( ) [0x457e9e] \\n\\twebdriver ::ElementValueC ommand: :DragAndDropFil ePaths( ) [0x4465ac] \\n\\twebdriver ::ElementValueC ommand: :ExecutePost( ) [0x4469cd] \\n\\twebdriver ::internal: :DispatchHelper () [0x439304] \\n\\twebdriver ::Dispatch\ \u003C\ \u003E( ) [0x429fe7] \\n\\tanalyze_ request [0x436f98] \\n\\tprocess_ new_connection [0x438392] \\n\\tworker_ thread [0x438631] \\n\\tstart_ thread [0x7f4c1a168d8c ]\\n\\t0x7f4c15 05b04d\ \n"}}'
ERROR: test_file_input (sst.runtests.
-------
Traceback (most recent call last):
File "/home/
exec self.code in context
File "/home/
textfield_
File "/home/
textfield.
File "/usr/local/
self.
File "/usr/local/
return self._parent.
File "/usr/local/
self.
File "/usr/local/
raise exception_
WebDriverException: Message: '{"sessionId"
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 1 test in 2.370s
FAILED (errors=1) ------- ------- ------- ------- ------- ------- ------- ------- -------
-------
killing django... ~/sst/selenium- simple- test$
corey@lenovo: