Page 1 of 1

Iexplorer. ExecuteJS Error ??

Posted: Tue Dec 29, 2020 1:16 pm
by Tc_Falcon
hello Friends I'm Preparing a Browser Plugin Where am I making a mistake in this code


function IE.ExecuteJS(tObjectName,tScript)
if tIE == true then
Application.Sleep(500);
loadstring('sIE.'..''..tScript..'')();
end
end


For example, I want the following codes to work in the plugin

result = IExplorer.ExecuteJS("Plugin1", "alert(document.getElementsByClassName('bh bi')[1].innerText)");
IExplorer.ExecuteJS("Plugin1", "document.getElementsByName("submit")[0].click();
IExplorer.ExecuteJS("Plugin1", "document.getElementsByTagName("form")[0].elements[0].click();
IExplorer.ExecuteJS("Plugin1", " document.getElementById('177682162373056.2').checked = true");
IExplorer.ExecuteJS("Plugin1", "document.getElementById('177682162373056.2').click();");
IExplorer.ExecuteJS("Plugin1", "javascript:void(document.getElementById(\"ornek\").value=\""..ornek.."\");");
IExplorer.ExecuteJS("Plugin1", "window.scrollTo(0,document.body.scrollHeight);");

vs vs
these are examples codes

I am waiting for your help thanks in advance :)

Image
Image

Re: Iexplorer. ExecuteJS Error ??

Posted: Sat Jan 30, 2021 4:49 pm
by Tc_Falcon
isn't there someone to help