Best Python code snippet using selene_python
apps.gypi
Source:apps.gypi
1# Copyright 2013 The Chromium Authors. All rights reserved.2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.4{5 'targets': [6 {7 'target_name': 'apps',8 'type': 'static_library',9 'variables': { 'enable_wexit_time_destructors': 1, },10 # Since browser and browser_extensions actually depend on each other,11 # we must omit the dependency from browser_extensions to browser.12 # However, this means browser_extensions and browser should more or less13 # have the same dependencies. Once browser_extensions is untangled from14 # browser, then we can clean up these dependencies.15 'dependencies': [16 'browser_extensions',17 'common/βextensions/βapi/βapi.gyp:api',18 '../βskia/βskia.gyp:skia',19 ],20 'include_dirs': [21 '<(INTERMEDIATE_DIR)',22 '<(grit_out_dir)',23 ],24 'sources': [25 'app_launch_for_metro_restart_win.cc',26 'app_launch_for_metro_restart_win.h',27 'app_launcher.cc',28 'app_launcher.h',29 'app_lifetime_monitor.cc',30 'app_lifetime_monitor.h',31 'app_lifetime_monitor_factory.cc',32 'app_lifetime_monitor_factory.h',33 'app_load_service.cc',34 'app_load_service.h',35 'app_load_service_factory.cc',36 'app_load_service_factory.h',37 'app_restore_service.cc',38 'app_restore_service.h',39 'app_restore_service_factory.cc',40 'app_restore_service_factory.h',41 'app_shim/βapp_shim_handler_mac.cc',42 'app_shim/βapp_shim_handler_mac.h',43 'app_shim/βapp_shim_host_mac.cc',44 'app_shim/βapp_shim_host_mac.h',45 'app_shim/βapp_shim_host_manager_mac.h',46 'app_shim/βapp_shim_host_manager_mac.mm',47 'app_shim/βapp_shim_mac.cc',48 'app_shim/βapp_shim_mac.h',49 'app_shim/βchrome_main_app_mode_mac.mm',50 'app_shim/βextension_app_shim_handler_mac.cc',51 'app_shim/βextension_app_shim_handler_mac.h',52 'app_window_contents.cc',53 'app_window_contents.h',54 'field_trial_names.cc',55 'field_trial_names.h',56 'launcher.cc',57 'launcher.h',58 'metrics_names.h',59 'native_app_window.h',60 'pref_names.cc',61 'pref_names.h',62 'prefs.cc',63 'prefs.h',64 'saved_files_service.cc',65 'saved_files_service.h',66 'saved_files_service_factory.cc',67 'saved_files_service_factory.h',68 'shell_window.cc',69 'shell_window.h',70 'shell_window_geometry_cache.cc',71 'shell_window_geometry_cache.h',72 'shell_window_registry.cc',73 'shell_window_registry.h',74 'switches.cc',75 'switches.h',76 ],77 'conditions': [78 ['chromeos==1',79 {80 'dependencies': [81 'browser_chromeos',82 ]83 }84 ],85 ['enable_extensions==0',86 {87 'sources/β': [88 ['exclude', '^apps/β'],89 ],90 }91 ],92 ],93 # TODO(jschuh): crbug.com/β167187 fix size_t to int truncations.94 'msvs_disabled_warnings': [ 4267, ],95 },96 ],97 'conditions': [98 ['OS=="win"',99 {100 'targets': [101 {102 'target_name': 'app_host',103 'type': 'executable',104 'include_dirs': [105 '..',106 ],107 'direct_dependent_settings': {108 'include_dirs': [109 '..',110 ],111 },112 'dependencies': [113 '../βbase/βbase.gyp:base',114 '../βchrome/βchrome.gyp:chrome_version_resources',115 '../βchrome/βchrome.gyp:launcher_support',116 '../βgoogle_update/βgoogle_update.gyp:google_update',117 ],118 'sources': [119 'app_host/βapp_host.rc',120 'app_host/βapp_host_main.cc',121 'app_host/βapp_host_resource.h',122 'app_host/βbinaries_installer.cc',123 'app_host/βbinaries_installer.h',124 'app_host/βupdate.cc',125 'app_host/βupdate.h',126 '<(SHARED_INTERMEDIATE_DIR)/βchrome_version/βapp_host_exe_version.rc',127 ],128 'msvs_settings': {129 'VCLinkerTool': {130 'SubSystem': '2', # Set /βSUBSYSTEM:WINDOWS131 },132 },133 },134 ],135 },136 ], # 'OS=="win"'137 ], # 'conditions'...
urls.py
Source:urls.py
1from connections import APP_HOST, APP_PORT2API_URL = 'http:/β/β'+APP_HOST+':'+APP_PORT+'/βapi/β'3ADD_USER = 'http:/β/β'+APP_HOST+':'+APP_PORT+'/βapi/βadd_user'4DEL_USER = 'http:/β/β'+APP_HOST+':'+APP_PORT+'/βapi/βdel_user/β'5BLOCK_USER = 'http:/β/β'+APP_HOST+':'+APP_PORT+'/βapi/βblock_user/β'6ACCEPT_USER = 'http:/β/β'+APP_HOST+':'+APP_PORT+'/βapi/βaccept_user/β'7URL_STATUS = 'http:/β/β' + APP_HOST + ':' + APP_PORT + '/βstatus'8URL_MAIN = 'http:/β/β' + APP_HOST + ':' + APP_PORT + '/βwelcome/β'9URL_LOGIN = 'http:/β/β' + APP_HOST + ':' + APP_PORT + '/βlogin'10URL_REG = 'http:/β/β' + APP_HOST + ':' + APP_PORT + '/βreg'...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!