2013-10-07 9 views
0

나는 2.3 webdriver 셀레늄을 사용하고 아래의 브라우저를 초기화 테스트를 개발하고를 실행 30 ~ 40 초 정도 걸립니다 크롬이나 사파리 등 다른 브라우저는 몇 초 안에 시작됩니다. 사람이에 대한 해결 방법이있는 경우 https://groups.google.com/forum/#!topic/selenium-users/a2fNfF-mD_E셀레늄 파이어 폭스 드라이버는 파이어 폭스

정말 감사합니다 : 아래의 블로그에서 제안하지만 나를 위해 작동하지 않았다 나는이 솔루션을 시도했지만

.

+0

Firefox 버전? – Hemanth

+0

22, 23, 24 이후에 이것을 관찰했습니다 – Anirudh

+2

추가 디버깅을 진행하기 전에 반드시이 부분을 붙여 넣은 링크에서 확인 했습니까? 앨런이 맞습니다! 나를 위해 파이어 폭스를 시작하는 데 2 ​​초 30 초가 걸렸습니다. 제어판 \ 네트워크 및 인터넷 \ 네트워크 연결에있는 사용되지 않는 네트워크 어댑터를 비활성화 한 후 문제가 해결되어 이제는 10 초 만에 시작됩니다. – Hemanth

답변

2

저는 파이썬에서 테스트 케이스와 함께 사용하는 FF에 대한 프로필 설정이 있습니다. 내가 아는 한 그것은 더 나은 성능을합니다 :

profile = webdriver.FirefoxProfile() 
     profile.set_preference('general.useragent.override', user_agent) 
     # Paint delay off 
     profile.set_preference('nglayout.initialpaint.delay', 0) 
     # Tabs animation 
     profile.set_preference('browser.tabs.animate', False) 
     # Gif animation off 
     profile.set_preference('image.animation_mode', 'none') 
     # Tabs memory off 
     profile.set_preference('browser.sessionhistory.max_total_viewer', 1) 
     profile.set_preference('browser.sessionhistory.max_entries', 3) 
     profile.set_preference('browser.sessionhistory.max_total_viewers', 1) 
     profile.set_preference('browser.sessionstore.max_tabs_undo', 0) 
     # Asynchronous requests to the server 
     profile.set_preference('network.http.pipelining', True) 
     profile.set_preference('network.http.pipelining.maxrequests', 8) 
     # Cache enabled 
     profile.set_preference('browser.cache.memory.enable', True) 
     profile.set_preference('browser.cache.disk.enable', True) 
     # Autosuggests 
     profile.set_preference('browser.search.suggest.enabled', False) 
     # Formfills 
     profile.set_preference('browser.formfill.enable', False) 
     # scan downloads 
     profile.set_preference('browser.download.manager.scanWhenDone', False) 
     # no bookmarks backup 
     profile.set_preference('browser.bookmarks.max_backups', 0) 

자바 구문을보십시오.