오토핫키에 셀레니움을 써보자
안녕하세요 레오입니다.
셀레니움을 오토핫키에서 써보려하는데 정보검색에 어려움을 느껴서
여러 시행착오가 생기지 않게 간략하게나마 정리했습니다.
* 셀레니움 다운로드
https://florentbr.github.io/SeleniumBasic/
Seleniumbasic
Description It makes it possible to automate web browsing using Excel and VBA code or using a simple VBS file executed by double-clicking on it. User's actions can be recorded using the Firefox plugin named "Selenium IDE" and translated to VBA or VBS with
florentbr.github.io
- 관리자 권한으로 설치파일 실행해야 C:\programfiles\Selenium 경로로 설치 됨
* 크롬에서 chrome://version 을 쳐서 현재 버전확인
* 현재 버전에 맞는 크롬드라이버 다운로드 받아 C:\program files\Selenium 폴더에 넣어줌
https://chromedriver.storage.googleapis.com/index.html
https://chromedriver.storage.googleapis.com/index.html
chromedriver.storage.googleapis.com
* 레퍼런스 파일
c:\program files\Selenium\Selenium.chm
* 맞춤법검사기 사이트에 내용 입력 예제
내용 블록지정하고 컨트롤F2를 누르면 사이트 띄우고
내용입력후 맞춤법검사하기 버튼 누르기
https://www.incruit.com/tools/spell/
완벽한 맞춤법검사기 - 인크루트
맞춤법검사는 기본! 이력서 및 자기소개서에 오타, 띄어쓰기, 외래어의 잘못된 표기 검사를 한번에! 글자수세기 | 맞춤법검사 | 학점변환 | 어학변환 기능을 인크루트 취업지원프로그램에서 이
www.incruit.com
^F2::
send,{ctrl down}c{ctrl up}
;복사
driver := ComObjCreate("Selenium.ChromeDriver")
driver.get("https://www.incruit.com/tools/spell/")
content := driver.findelementbyid("spellcontent")
;내용입력칸 찾기 id로 찾기
content.sendkeys(clipboard)
;클립보드 내용 붙여넣기
button1 := driver.findelementbyclass("btn_check_spell")
;검사하기 버튼 찾기 class로 찾기
button1.click()
;버튼 클릭
return
* 현재 안보이는 걸 어떻게 클릭?
How to force Selenium WebDriver to click on element which is not currently visible?
I am using Selenium 2 Java API with FirefoxDriver. When I fill a form, checkboxes are added to the page depending the forms inputs. I'd like to simulate a click on those checkboxes using Seleniu...
stackoverflow.com
* 런타임 오류가 뜰 경우 -2146232576 (80131700)
- .Net Framework 3.5 설치 필요