AHK: Chrome_selenium

Get help with using AutoHotkey and its commands and hotkeys
inseption86
Posts: 71
Joined: 19 Apr 2018, 00:24

AHK: Chrome_selenium

01 Apr 2019, 15:01

Hello guys, tell me please, there are a lot of questions:
1. is it possible to somehow automate captcha input -

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance force 

URL := "http://frdocheck.obrnadzor.gov.ru"
institute = Федеральное государственное бюджетное образовательное учреждение высшего образования"Псковский государственный университет" (ФГБОУ ВО "Псковский государственный университет")

driver := ComObjCreate("Selenium.ChromeDriver")

driver.AddArgument("--disable-infobars")
driver.Get(URL)

driver.FindElementByXPath("//*[@name='trainingLevel']").WaitEnabled().SendKeys("сертификат о владении русским языком")
driver.findElementsByClass("form-control").item[16].SendKeys(institute)

driver.findElementsByClass("form-control").item[17].SendKeys("Фамилия")
driver.findElementsByClass("form-control").item[18].SendKeys("Фамилия_лат")
driver.findElementsByClass("form-control").item[19].SendKeys("номер")
driver.findElementsByClass("form-control").item[20].SendKeys("01.01.2019")

inputbox, capture, , , , , , , , , , 

driver.findElementsByClass("form-control").item[21].SendKeys(capture)

driver.FindElementByXPath("//*[@name='checkDoc']").WaitEnabled().SendKeys(driver.Keys.Enter)


Exit:
    driver.Quit()
	ExitApp
Last edited by inseption86 on 02 Apr 2019, 06:15, edited 1 time in total.
inseption86
Posts: 71
Joined: 19 Apr 2018, 00:24

Re: AHK: Chrome_selenium

02 Apr 2019, 06:13

"SeleniumBasic-2.0.9.0.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-

select only the first position when installing ?

Image

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Flipeador, Odlanir, toralf, yasqueenslay and 237 guests