How to run headless REMOTE chrome using robot framework

后端 未结 6 976
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 09:52

I\'m trying to run chrome headless with my robot framework tests suites. I managed to do it independtly with python using selenium as follows:

options = webd         


        
6条回答
  •  北海茫月
    2020-12-14 10:48

    You can now use aliases:

    *** Settings ***
    Library    SeleniumLibrary
    
    *** Test Cases ***
    Firefox
        Open Browser    http://robotframework.org/    headlessfirefox
        Capture Page Screenshot
        [Teardown]    Close All Browsers
    
    Chrome
        Open Browser    http://robotframework.org/     headlesschrome
        Capture Page Screenshot
        [Teardown]    Close All Browsers
    

    See https://github.com/robotframework/SeleniumLibrary/pull/1011

提交回复
热议问题