Iexplorer. ExecuteJS Error ??

General discussion forum for Ams Plugin Maker
Post Reply
User avatar
Tc_Falcon
Registered User
Posts: 3
Joined: Sat Dec 26, 2020 11:40 am

Iexplorer. ExecuteJS Error ??

Post 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
User avatar
Tc_Falcon
Registered User
Posts: 3
Joined: Sat Dec 26, 2020 11:40 am

Post by Tc_Falcon »

isn't there someone to help
Post Reply