|
@@ -1467,7 +1467,6 @@ wait untill text in selector disabppears
|
|
|
element.click
|
|
|
element.clear
|
|
|
|
|
|
- # workaround, sometimes focus is not triggered
|
|
|
element.send_keys(params[:customer])
|
|
|
sleep 2.5
|
|
|
|
|
@@ -1830,13 +1829,23 @@ wait untill text in selector disabppears
|
|
|
element.click
|
|
|
element.clear
|
|
|
|
|
|
- # workaround, sometimes focus is not triggered
|
|
|
+ # ff issue, sometimes focus event gets dropped
|
|
|
+ # if drowdown is not open, try it again
|
|
|
+ if !instance.find_elements(css: '.active .newTicket .js-recipientDropdown.open')[0]
|
|
|
+ instance.execute_script('$(".active .newTicket .js-recipientDropdown").addClass("open")')
|
|
|
+ end
|
|
|
+
|
|
|
element.send_keys(data[:customer])
|
|
|
sleep 2.5
|
|
|
|
|
|
element.send_keys(:enter)
|
|
|
- #instance.find_elements(css: '.active .newTicket .recipientList-entry.js-user.is-active')[0].click
|
|
|
sleep 0.4
|
|
|
+ # ff issue, sometimes enter event gets dropped
|
|
|
+ # take user manually
|
|
|
+ if instance.find_elements(css: '.active .newTicket .js-recipientDropdown.open')[0]
|
|
|
+ instance.find_elements(css: '.active .newTicket .recipientList-entry.js-user.is-active')[0].click
|
|
|
+ sleep 0.4
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
if params[:custom_data_select]
|
|
@@ -1993,7 +2002,6 @@ wait untill text in selector disabppears
|
|
|
element.click
|
|
|
element.clear
|
|
|
|
|
|
- # workaround, sometimes focus is not triggered
|
|
|
element.send_keys(data[:customer])
|
|
|
sleep 2.5
|
|
|
|