bobbyastrain
New Member
- Joined
- Oct 3, 2014
- Messages
- 3
I am unable to find the proper syntax for passing an argument to a JavaScript function in Excel using the Selenium VBA wrapper. What I show below works with VB.NET, but does not work with VBA.
driver.ExecuteScript ("document.getElementById('ctl00_Content_lblSepID').innerHTML = (arguments[0]);", SepName)
where SepName is a string variable set in the VBA code.
Can someone offer the proper syntax?
driver.ExecuteScript ("document.getElementById('ctl00_Content_lblSepID').innerHTML = (arguments[0]);", SepName)
where SepName is a string variable set in the VBA code.
Can someone offer the proper syntax?