How to use SeleniumBasic control QQBrowser

Get help with using AutoHotkey and its commands and hotkeys
daiweisc
Posts: 31
Joined: 19 Oct 2019, 04:27

How to use SeleniumBasic control QQBrowser

18 Jun 2020, 01:10

My computer have Google Chrome and QQBrowser, QQBrowser is a browser of double kernel base on Chronium70.0.3538.25 and IE11.0.9600.17843, Google Chrome is the latest version of 83.0.4103.106.
I always use SeleniumBasic control Google Chrome. Today I want to use SeleniumBasic control QQBrowser. The code run with wrong. Who help me.

Code: Select all

#NoEnv
#SingleInstance,Force
WinActivate,中国联通cBSS支撑系统
MouseMove,A_ScreenWidth/2,A_ScreenHeight
Sleep,7000
Driver := ComObjActive("Selenium.ChromeDriver")
options = webdriver.ChromeOptions()
;options.binary_location = r'C:\Users\Secoo\AppData\Roaming\360se6\Application\360se.exe'
Driver := webdriver.Chrome(r'D:\09AHK\QQBrowser chromedriver\chromedriver.exe',options=options)
;或driver = webdriver.Chrome(executable_path=r'D:\09AHK\QQBrowser chromedriver\chromedriver.exe') 
Driver.SwitchToFrame(0)
Driver.FindElementByID("STAFF_ID").clear().SendKeys("yujx5").SendKeys(Keys.Enter)
Driver.FindElementByID("LOGIN_PASSWORD").clear().SendKeys("yujx5").SendKeys(Keys.Enter)
Sleep,3000
Drive.quit()
Exitapp

Return to “Ask For Help”

Who is online

Users browsing this forum: Aaron0824, Google [Bot], itsnotaron, mikeyww, tatagi and 23 guests