재미만을 위해서 Google Soccer 2012을 자동화하려고합니다. 나는 어떤 문제도 없었습니다 automating other Google games.Google Soccer 2012 자동화
축구와 관련된 문제는 left
및 right
에 반응하지 않지만 space
은 정상적으로 작동한다는 것입니다.
이 전체 스크립트입니다
puts "Go to game."
require "bundler/setup"
require "watir-webdriver"
browser = Watir::Browser.new :chrome
browser.goto "https://www.google.com/doodles/soccer-2012"
sleep 1
puts "Go!"
browser.div(id: "hplogo").frame.div.click
sleep 1
puts "Left!"
browser.send_keys :left
sleep 1
puts "Rigth!"
browser.send_keys :right
sleep 1
puts "Space!"
browser.send_keys :space
당신은 아이디어가 어떻게 left
및 right
이 작업을 얻을 수있다 https://github.com/zeljkofilipin/olympics
누구에 축구 및 기타 게임 코드를 볼 수 있습니까?
마우스로 골키퍼를 옮기는 것이 좋습니다! :) –