Ciel Posted September 14, 2018 Posted September 14, 2018 I tried this code to "Stop" in Manager Server but every action after window appears are not work. Send("#r") WinWaitActive("Run") Send("InetMgr.exe") Send("{ENTER}") Sleep(5000) ControlEnable("Internet Information Services (IIS) Manager","","[CLASSNAMENN:WindowsForms10.STATIC.app.0.3553390_r36_ad111]") -> not working Send("{TAB 5}{ENTER}") -> not working Please kindly help me. Thanks!
Danp2 Posted September 14, 2018 Posted September 14, 2018 Not sure why you are using ControlEnable. Perhaps you meant ControlClick instead? Either way, it's better to use the command "iisreset" instead of trying to automate the GUI. Try this -- #RequireAdmin Run(@ComSpec & " /c " & 'iisreset /stop') Latest Webdriver UDF Release Webdriver Wiki FAQs
Ciel Posted September 17, 2018 Author Posted September 17, 2018 Thank Danp2. Could you show me how to Send key like Send("{TAB} ") to IIS manager window or {RIGHT} into Connections area and right click to element -> click stop. But I can send key to this window. And when I click to Run as Administrator, I can send key to User account control window to click Yes button.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now