@@ -91,9 +91,9 @@ class LoginPageLocators:
9191 login_params = UrlManager ().login_params
9292 login_url = UrlManager ().login_url ()
9393
94- submit_button = { '6' : (By .ID , "submit" ), '7' : ( By . ID , "submit" )}
95- username_textfield = { '6' : (By .ID , "j_username" ), '7' : ( By . ID , "j_username" )}
96- password_textfield = { '6' : (By .ID , "j_password" ), '7' : ( By . ID , "j_password" )}
94+ submit_button = (By .ID , "submit" )
95+ username_textfield = (By .ID , "j_username" )
96+ password_textfield = (By .ID , "j_password" )
9797 application_version = (By .ID , 'product-version' )
9898 node_id = (By .CLASS_NAME , 'footer-body' )
9999
@@ -106,35 +106,33 @@ class LogoutPageLocators:
106106class GetStartedLocators :
107107 get_started_params = UrlManager ().get_started_params
108108 get_started_url = UrlManager ().get_started_url ()
109- user_profile_icon = { '6' : (By .ID , 'current-user' ), '7' : ( By . ID , 'current-user' )}
109+ user_profile_icon = (By .ID , 'current-user' )
110110
111111
112112class DashboardLocators :
113113 dashboard_params = UrlManager ().dashboard_params
114114 dashboard_url = UrlManager ().dashboard_url ()
115115
116- dashboard_presence = { '6' : (By .TAG_NAME , 'h2' ), '7' : ( By . TAG_NAME , 'h2' )}
116+ dashboard_presence = (By .TAG_NAME , 'h2' )
117117
118118
119119class ProjectsLocators :
120120 projects_params = UrlManager ().projects_params
121121 project_url = UrlManager ().projects_url ()
122122
123- projects_list = { '6' : (By .ID , "projects-container" ), '7' : ( By . ID , "projects-container" )}
123+ projects_list = (By .ID , "projects-container" )
124124
125125
126126class ProjectLocators :
127127
128- repositories_container = { '6' : (By .ID , "repositories-container" ), '7' : ( By . ID , "repositories-container" )}
129- repository_name = { '6' : (By .CSS_SELECTOR , "span.repository-name" ), '7' : ( By . CSS_SELECTOR , "span.repository-name" )}
128+ repositories_container = (By .ID , "repositories-container" )
129+ repository_name = (By .CSS_SELECTOR , "span.repository-name" )
130130
131131
132132class RepoNavigationPanelLocators :
133133
134- navigation_panel = {'6' : (By .CSS_SELECTOR , '.aui-navgroup-vertical>.aui-navgroup-inner' ),
135- '7' : (By .CSS_SELECTOR , '.aui-navgroup-vertical>.aui-navgroup-inner' )}
136- clone_repo_button = {'6' : (By .CSS_SELECTOR , '.clone-repo>#clone-repo-button' ),
137- '7' : (By .CSS_SELECTOR , '.clone-repo>#clone-repo-button' )}
134+ navigation_panel = (By .CSS_SELECTOR , '.aui-navgroup-vertical>.aui-navgroup-inner' )
135+ clone_repo_button = (By .CSS_SELECTOR , '.clone-repo>#clone-repo-button' )
138136
139137 fork_repo_button = (By .CSS_SELECTOR , 'span.icon-fork' )
140138
@@ -143,7 +141,7 @@ class RepoNavigationPanelLocators:
143141
144142class RepoLocators :
145143
146- pull_requests_list = { '6' : (By .ID , 'pull-requests-content' ), '7' : ( By . ID , 'pull-requests-content' )}
144+ pull_requests_list = (By .ID , 'pull-requests-content' )
147145 repo_fork_sync = (By .ID , "enable-ref-syncing" )
148146 fork_name_field = (By .ID , 'name' )
149147 fork_repo_submit_button = (By .ID , "fork-repo-submit" )
@@ -171,31 +169,24 @@ class RepoLocators:
171169
172170class PullRequestLocator :
173171
174- tab_panel = { '6' : (By .CSS_SELECTOR , 'ul.tabs-menu' ), '7' : ( By . CSS_SELECTOR , 'ul.tabs-menu' )}
172+ tab_panel = (By .CSS_SELECTOR , 'ul.tabs-menu' )
175173
176- commit_files = {'6' : (By .CSS_SELECTOR , '.commit-files>.file-tree-container' ),
177- '7' : (By .CSS_SELECTOR , '.changes-sidebar>.changes-scope-content' )}
178- diff_code_lines = {'6' : (By .CLASS_NAME , 'CodeMirror-code' ),
179- '7' : (By .CLASS_NAME , "diff-segment" )}
174+ commit_files = (By .CSS_SELECTOR , '.changes-sidebar>.changes-scope-content' )
175+ diff_code_lines = (By .CLASS_NAME , "diff-segment" )
180176
181177 commit_message_label = (By .CSS_SELECTOR , 'tr>th.message' )
182- inline_comment_button = {'6' : (By .CSS_SELECTOR , "button.add-comment-trigger>span.aui-iconfont-add-comment" ),
183- '7' : (By .CSS_SELECTOR , ".diff-line-comment-trigger" )}
184- comment_text_area = {'6' : (By .CSS_SELECTOR , "textarea.text" ), '7' : (By .CLASS_NAME , "comment-editor-wrapper" )}
185- text_area = {'6' : (By .CSS_SELECTOR , 'textarea.text' ), '7' : (By .CLASS_NAME , 'CodeMirror-code' )}
186- comment_button = {'6' : (By .CSS_SELECTOR , "div.comment-form-footer>div.buttons>button:nth-child(1)" ),
187- '7' : (By .CSS_SELECTOR , "div.editor-controls>button:nth-child(1)" )}
188- pull_request_activity_content = {'6' : (By .CSS_SELECTOR , ".pull-request-activity-content" ),
189- '7' : (By .CSS_SELECTOR , ".pull-request-activities" )}
178+ inline_comment_button = (By .CSS_SELECTOR , ".diff-line-comment-trigger" )
179+ comment_text_area = (By .CLASS_NAME , "comment-editor-wrapper" )
180+ text_area = (By .CLASS_NAME , 'CodeMirror-code' )
181+ comment_button = (By .CSS_SELECTOR , "div.editor-controls>button:nth-child(1)" )
182+ pull_request_activity_content = (By .CSS_SELECTOR , ".pull-request-activities" )
190183
191184 pull_request_page_merge_button = (By .CLASS_NAME , 'merge-button' )
192185
193186 merge_spinner = (By .CSS_SELECTOR , "aui-spinner[size='small']" )
194- diagram_selector = {'6' : (By .CSS_SELECTOR , 'div.diagram-image' ), '7' : (By .CLASS_NAME , 'branches-diagram' )}
195- pull_request_modal_merge_button = {'6' : (By .CSS_SELECTOR , 'button.confirm-button' ),
196- '7' : (By .CSS_SELECTOR , ".merge-dialog button[type='submit']" )}
197- del_branch_checkbox_selector = {'6' : (By .CSS_SELECTOR , 'span.pull-request-cleanup-checkbox-wrapper' ),
198- '7' : (By .NAME , 'deleteSourceRef' )}
187+ diagram_selector = (By .CLASS_NAME , 'branches-diagram' )
188+ pull_request_modal_merge_button = (By .CSS_SELECTOR , ".merge-dialog button[type='submit']" )
189+ del_branch_checkbox_selector = (By .NAME , 'deleteSourceRef' )
199190 delete_branch_per_merge_checkbox = (By .CSS_SELECTOR , "input[type='checkbox']" )
200191
201192
@@ -209,7 +200,7 @@ class BranchesLocator:
209200 search_branch_textfield = (By .ID , 'paged-table-input-for-branch-list' )
210201 search_branch_action = (By .CSS_SELECTOR , '.branch-actions-column>button' )
211202 search_action_delete_branch = (By .CSS_SELECTOR , 'li>a.delete-branch' )
212- delete_branch_diaglog_submit = (By .ID , 'delete-branch-dialog-submit' )
203+ delete_branch_dialog_submit = (By .ID , 'delete-branch-dialog-submit' )
213204
214205
215206class RepositorySettingsLocator :
0 commit comments