- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
12-09-2025 02:49 PM
Hello,
With AutoIt I can interact with Internet Explorer, but when it comes with Chrome, the only way I found was with:
It seems I can't contact Chrome Directly like Internet Explorer, to search input field (by its ID) or extract an element (extract the text from the <h1 class="post-title"> element)
For example https://practicetestautomation.com/practice-test-login/ with AutoIT I can use Internet Explorer ( But for Chrome it seems impossibile to interact, unless I use python or a direct send)
Is there a way to write the below script but with Chrome?
; Create the COM object for Internet Explorer
Global $oIE = ObjCreate("InternetExplorer.Application")
; Navigate to the URL
$oIE.Navigate("https://practicetestautomation.com/practice-test-login/")
; Find the username input field (by its ID)
Local $oUsernameField = $oIE.document.getElementById("username")
If IsObj($oUsernameField) Then
$oUsernameField.value = "student" ; Enter your username here
Else
MsgBox(0, "Error", "Username field not found!")
Exit
EndIf
; Find the password input field (by its ID)
Local $oPasswordField = $oIE.document.getElementById("password")
If IsObj($oPasswordField) Then
$oPasswordField.value = "Password123" ; Enter your password here
Else
MsgBox(0, "Error", "Password field not found!")
Exit
EndIf
; Find and click the Submit button (by its ID)
Local $oSubmitButton = $oIE.document.getElementById("submit")
If IsObj($oSubmitButton) Then
$oSubmitButton.Click() ; Click the submit button
Else
MsgBox(0, "Error", "Submit button not found!")
Exit
EndIf
; Now, extract the text from the <h1 class="post-title"> element
Local $oTitleElement = $oIE.document.getElementsByClassName("post-title")
If IsObj($oTitleElement) And $oTitleElement.length > 0 Then
; Extract the text from the <h1 class="post-title">
Local $sMessage = $oTitleElement.item(0).innerText
; Copy the extracted text to the clipboard
ClipPut($sMessage)
; , display the copied text in a message box
MsgBox(0, "Success Message", "The message copied to clipboard is: " & @CRLF & $sMessage)
Else
MsgBox(0, "Error", "Could not find the success message!")
EndIf
Thank you very much
12-09-2025 04:53 PM
Hi @ABDOU LAZEZ HUSSIEN EL SHEREDI
The AutoIt team has created a WebDriver UDF that supports Chrome, Firefox, Edge, etc.
https://www.autoitscript.com/forum/topic/191990-webdriver-udf
https://www.autoitscript.com/forum/topic/212240-webdriver-for-chrome/
With this UDF you can write almost the same style code as Selenium. It gives you Chrome automation without switching programming language.
Hope it helps!
12-09-2025 04:53 PM
Hi @ABDOU LAZEZ HUSSIEN EL SHEREDI
The AutoIt team has created a WebDriver UDF that supports Chrome, Firefox, Edge, etc.
https://www.autoitscript.com/forum/topic/191990-webdriver-udf
https://www.autoitscript.com/forum/topic/212240-webdriver-for-chrome/
With this UDF you can write almost the same style code as Selenium. It gives you Chrome automation without switching programming language.
Hope it helps!
12-13-2025 06:44 PM
@Malhar Vora
Thank you appreciated! I will try it
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

