brrry Posted July 13, 2014 Share Posted July 13, 2014 $id = _IEGetObjById($oIE, "shipinpId") $in = _IEFormElementSetValue($id, "test") $oIE.Document.parentWindow.execScript("return submitInputOnFillorEnter('#{receivingBackingBean.validateASNScanAction}', this, event);") I use controlsend in my current script but I want to change it. So I came up with the script but it doesn't do anything I already tried _IEformsubmit and _IEaction But no luck. Html code <INPUT id=shipinpId onkeydown="return submitInputOnFillorEnter('#{receivingBackingBean.validateASNScanAction}', this, event);" maxLength=20 value=test name=shipinpId> Link to comment Share on other sites More sharing options...
Danp2 Posted July 13, 2014 Share Posted July 13, 2014 More info would greatly increase the chance of you getting a response. Please describe in detail what isn't working as expected. Can you provide a short reproducer script that we could run? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
brrry Posted July 13, 2014 Author Share Posted July 13, 2014 It's a company internal website. After I input something in the inputbox, the cursor must stay in it and press enter key will submit the page. Basically im using "controlsend enter" right now but I read somewhere in the forum that i can use execscript. I tried as shown in my previous post but it is not responding. No console error. Link to comment Share on other sites More sharing options...
Danp2 Posted July 13, 2014 Share Posted July 13, 2014 Using Execscript won't work with this code unless you find some way to pass the correct values for "this" and "event". Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now