2017-08-07 52 views
0

我想通過Ruby Watir在Weebly編輯器頁面中拖放元素。通過Ruby Watir在Weebly編輯器頁面中拖放不工作在Firefox瀏覽器中

drag_from is the element which is to be dragged in editor page 
drag_to is the element which is dropped to the editor 

drag_from.driver.action.move_to(drag_from.wd).perform 
drag_from.fire_event('onmouseup') 
drag_to.click 

上述代碼適用於Chrome,Internet Explorer和Edge瀏覽器。但它不適用於Firefox瀏覽器。

任何人都可以請幫忙。

在此先感謝

回答

0

This code目前正在研究的Watir與Firefox 54 & geckodriver 0.18.0

drag_from.drag_and_drop_on drag_to 
+0

需要與第一行或前兩行來代替呢? – test

+0

前兩行對嗎? – test

+0

這不適用於Firefox 53 – test

相關問題