모르는 사람들에게 c9는 클라우드를 사용하는 온라인 IDE입니다. 그래서 Watir과 함께 파이어 폭스를 사용하려고 해요 내가지고있어 오류입니다c9를 사용할 때 레일즈에서 Firefox 바이너리의 경로를 설정하는 방법은 무엇입니까?
"파이어 폭스 바이너리 (OS = 리눅스를) 찾을 수 없습니다. 확인 파이어 폭스 가 설치되어 있는지 확인 또는 셀레늄 수동으로 경로를 설정 :: WebDriver :: 파이어 폭스 :: Binary.path = "내 PC에 파이어 폭스의 파일 경로를 확인할 때이 PC가/윈도우 (C :)의
/프로그램 파일/모질라 파이어 폭스
이 내 코드는
입니다. 0def save
require 'watir'
require 'firefox'
@browser = Watir::Browser.new :firefox
@browser.goto "https://kroger.softcoin.com/programs/kroger/digital_coupons/?origin=DigitalCoupons&banner=Smiths#contentBox"
@browser.div(id: "contentBox").wait_until(&:present?).text
# Could not find Firefox binary (os=linux).
# Make sure Firefox is installed or set the path manually with
# Selenium::WebDriver::Firefox::Binary.path=
# ThisPC:WindowsC:ProgramFiles:MozillaFireFox
@products = @browser.divs
end
geckodriver –