Click on element before enter text (to improved work with contenteditable).

This commit is contained in:
Martin Edenhofer 2015-12-05 15:20:14 +01:00
parent b0b61191aa
commit 0cb6e34870

View file

@ -402,8 +402,7 @@ class TestCase < Test::Unit::TestCase
instance = params[:browser] || @browser instance = params[:browser] || @browser
element = instance.find_elements( { css: params[:css] } )[0] element = instance.find_elements( { css: params[:css] } )[0]
#element.click element.click
element.clear element.clear
if !params[:slow] if !params[:slow]