| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 | *** Settings ***Library         Selenium2Library  timeout=10  implicit_wait=0.5Test Setup      Open Browser  http://localhost:11111/Test Teardown   Close All Browsers*** Keywords ***Submit Preferences    Set Selenium Speed  2 seconds    Submit Form  id=search_form    Location Should Be  http://localhost:11111/    Set Selenium Speed  0 seconds*** Test Cases ***Front page    Page Should Contain  about    Page Should Contain  preferences404 page    Go To  http://localhost:11111/no-such-page    Page Should Contain  Page not found    Page Should Contain  Go to search pageAbout page    Click Element  link=about    Page Should Contain  Why use searx?    Page Should Contain Element  link=search enginesPreferences page    Click Element  link=preferences    Page Should Contain  Preferences    Page Should Contain  Default categories    Page Should Contain  Currently used search engines    Page Should Contain  dummy dummy    Page Should Contain  general dummySwitch category    Go To  http://localhost:11111/preferences    Page Should Contain Checkbox  category_general    Page Should Contain Checkbox  category_dummy    Click Element  xpath=//*[.="general"]    Click Element  xpath=//*[.="dummy"]    Submit Preferences    Checkbox Should Not Be Selected  category_general    Checkbox Should Be Selected  category_dummyChange language    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    Select From List  locale  hu    Submit Preferences    Page Should Contain  rólunk    Page Should Contain  beállításokChange method    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    Select From List  method  GET    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  method  GET    Select From List  method  POST    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  method  POSTChange theme    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  theme  legacy    Select From List  theme  oscar    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  theme  oscarChange safesearch    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  safesearch  None    Select From List  safesearch  Strict    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  safesearch  StrictChange image proxy    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  image_proxy  Disabled    Select From List  image_proxy  Enabled    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  image_proxy  EnabledChange search language    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  language  Default language    Select From List  language  Türkçe - tr-TR    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  language  Türkçe - tr-TRChange autocomplete    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  autocomplete  -    Select From List  autocomplete  google    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  autocomplete  googleChange allowed/disabled engines    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    Page Should Contain  Engine name    Element Should Contain  xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy']  Block    Element Should Contain  xpath=//label[@class="deny"][@for='engine_general_general_dummy']  Block    Click Element  xpath=//label[@class="deny"][@for='engine_general_general_dummy']    Submit Preferences    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    Page Should Contain  Engine name    Element Should Contain  xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy']  Block    Element Should Contain  xpath=//label[@class="deny"][@for='engine_general_general_dummy']  \Block a plugin    Page Should Contain  about    Page Should Contain  preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  theme  legacy    Select From List  theme  oscar    Submit Preferences    Go To  http://localhost:11111/preferences    List Selection Should Be  theme  oscar    Page Should Contain  Plugins    Click Link  Plugins    Checkbox Should Not Be Selected  id=plugin_HTTPS_rewrite    Click Element  xpath=//label[@for='plugin_HTTPS_rewrite']    Submit Preferences    Go To  http://localhost:11111/preferences    Page Should Contain  Plugins    Click Link  Plugins    Checkbox Should Be Selected  id=plugin_HTTPS_rewrite
 |