Jump to content

Recommended Posts

Posted

Hi autoit community,

I want to send commands and receive values to and from an IE embedded object in a GUI, but as _IECreateEmbedded() dose not support JavaScript commands, like :

$oIE.document.querySelector('#dataTable_paginator_top > span.ui-paginator-current').innertext

Or

$oIE.document.getElementsByClassName("tpi-list")

I can communicate with _IECreate() this way, for automation purposes, but I can not do the same with embedded objects.

Is there anyway to send these commands to the embedded IE object ?

Posted

You should take look to this both topics:

 

 

 

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

thanks for directing me to the right pass.

I did try _IEquerySelectorAll() but it did not work for me neither.

I will try he second topic.

And I guess I have to look into WebDrive also. ( fear of trying something new 😉 )

Posted

You should combine them.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

If you have the control on the HTML source of the page you set in the BrowserControl try to set the following directive as the first line of the <head> session.

<head>
       <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>

This will set the BrowserControl to work in the latest version of the IE browser you have installed on your PC, (IE11 ?) otherwise it will work by default as an IE7 and this can give you problems on some newer functionality of the HTML5 and CSS3.

for example, at this link (https://caniuse.com/?search=querySelector) you can verify what commands are supported by what browsers versions ....

Hope it can be of help

P.S.

also this link can be of help ... https://www.autoitscript.com/forum/topic/189843-iecreateembedded-issue/

 

Edited by Chimp

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...