I want to do an automation of the Internet Explorer. Open the Internet Explorer, navigate to login.live.com and set a value into the email textbox.
Here's the simple script:
import win32com.client
import time
IE = win32com.client.DispatchEx("InternetExplorer.Application")
IE.Visible = 1
IE.Navigate('login.live.com')
time.sleep(5)
DOC = IE.document
DOC.getElementById('i0116').value = 'test'
The last line always returns the following TypeError:
getElementById() takes exactly 1 argument (2 given)
When I try to add the value through the console of the Internet Explorer it works.
Btw. the getElementsByTagName() method works without any Errors.
Thanks for any help!