I need the javascript (nodejs) version of the following code (Python) using WebdriverIO:
from selenium import webdriver
with open("drag_and_drop_helper.js") as f:
js = f.read()
driver.execute_script(js + "$('#one').simulateDragDrop({ dropTarget: '#bin'});")
Here are the complete Python and Ruby implementations for further reference.