| 
									
										
										
										
											2014-01-12 12:40:27 +01:00
										 |  |  | *** Settings *** | 
					
						
							|  |  |  | Library         Selenium2Library  timeout=10  implicit_wait=0.5 | 
					
						
							|  |  |  | Test Setup      Open Browser  http://localhost:11111/ | 
					
						
							|  |  |  | Test Teardown   Close All Browsers | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  | *** Keywords *** | 
					
						
							|  |  |  | Submit Preferences | 
					
						
							|  |  |  |     Set Selenium Speed  2 seconds | 
					
						
							|  |  |  |     Submit Form  id=search_form | 
					
						
							|  |  |  |     Location Should Be  http://localhost:11111/ | 
					
						
							|  |  |  |     Set Selenium Speed  0 seconds | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-12 12:40:27 +01:00
										 |  |  | *** Test Cases *** | 
					
						
							|  |  |  | Front page | 
					
						
							|  |  |  |     Page Should Contain  about | 
					
						
							|  |  |  |     Page Should Contain  preferences | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-24 19:53:09 +02:00
										 |  |  | 404 page | 
					
						
							|  |  |  |     Go To  http://localhost:11111/no-such-page | 
					
						
							|  |  |  |     Page Should Contain  Page not found | 
					
						
							|  |  |  |     Page Should Contain  Go to search page | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-25 18:07:57 +01:00
										 |  |  | About page | 
					
						
							|  |  |  |     Click Element  link=about | 
					
						
							| 
									
										
										
										
											2016-08-15 17:12:43 +02:00
										 |  |  |     Page Should Contain  Why use searx? | 
					
						
							| 
									
										
										
										
											2014-01-25 18:07:57 +01:00
										 |  |  |     Page Should Contain Element  link=search engines | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Preferences page | 
					
						
							|  |  |  |     Click Element  link=preferences | 
					
						
							|  |  |  |     Page Should Contain  Preferences | 
					
						
							|  |  |  |     Page Should Contain  Default categories | 
					
						
							| 
									
										
										
										
											2014-02-07 01:52:46 +01:00
										 |  |  |     Page Should Contain  Currently used search engines | 
					
						
							| 
									
										
										
										
											2016-09-28 22:59:13 +02:00
										 |  |  |     Page Should Contain  dummy dummy | 
					
						
							|  |  |  |     Page Should Contain  general dummy | 
					
						
							| 
									
										
										
										
											2014-01-25 18:07:57 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | Switch 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"] | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2014-01-25 18:07:57 +01:00
										 |  |  |     Checkbox Should Not Be Selected  category_general | 
					
						
							|  |  |  |     Checkbox Should Be Selected  category_dummy | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change language | 
					
						
							|  |  |  |     Page Should Contain  about | 
					
						
							|  |  |  |     Page Should Contain  preferences | 
					
						
							|  |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     Select From List  locale  hu | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2014-01-25 18:07:57 +01:00
										 |  |  |     Page Should Contain  rólunk | 
					
						
							|  |  |  |     Page Should Contain  beállítások | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Change method | 
					
						
							|  |  |  |     Page Should Contain  about | 
					
						
							|  |  |  |     Page Should Contain  preferences | 
					
						
							|  |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     Select From List  method  GET | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  method  GET | 
					
						
							|  |  |  |     Select From List  method  POST | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  method  POST | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change theme | 
					
						
							|  |  |  |     Page Should Contain  about | 
					
						
							|  |  |  |     Page Should Contain  preferences | 
					
						
							|  |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							| 
									
										
										
										
											2016-09-22 23:51:07 +02:00
										 |  |  |     List Selection Should Be  theme  legacy | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Select From List  theme  oscar | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  theme  oscar | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change 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 | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  safesearch  Strict | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change 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 | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  image_proxy  Enabled | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change search language | 
					
						
							|  |  |  |     Page Should Contain  about | 
					
						
							|  |  |  |     Page Should Contain  preferences | 
					
						
							|  |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							| 
									
										
										
										
											2016-11-01 06:52:08 +01:00
										 |  |  |     List Selection Should Be  language  Default language | 
					
						
							| 
									
										
										
										
											2016-12-29 06:24:56 +01:00
										 |  |  |     Select From List  language  Türkçe - tr-TR | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							| 
									
										
										
										
											2016-12-29 06:24:56 +01:00
										 |  |  |     List Selection Should Be  language  Türkçe - tr-TR | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Change 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 | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     List Selection Should Be  autocomplete  google | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Change 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'] | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     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 | 
					
						
							| 
									
										
										
										
											2016-09-22 23:51:07 +02:00
										 |  |  |     List Selection Should Be  theme  legacy | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Select From List  theme  oscar | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     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'] | 
					
						
							| 
									
										
										
										
											2016-10-22 04:45:29 +02:00
										 |  |  |     Submit Preferences | 
					
						
							| 
									
										
										
										
											2016-04-09 01:09:26 +02:00
										 |  |  |     Go To  http://localhost:11111/preferences | 
					
						
							|  |  |  |     Page Should Contain  Plugins | 
					
						
							|  |  |  |     Click Link  Plugins | 
					
						
							|  |  |  |     Checkbox Should Be Selected  id=plugin_HTTPS_rewrite |