Merge pull request #10359 from danfengliu/cherry-pick-Go-Into-Repo-refector

[Cherry-pick to 1.10.0] Refect keyword of Go Into Reop
This commit is contained in:
danfengliu 2019-12-27 16:55:03 +08:00 committed by GitHub
commit e0b4620838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,8 +179,14 @@ Go Into Repo
[Arguments] ${repoName} [Arguments] ${repoName}
${repo_name_element}= Set Variable xpath=//clr-dg-cell[contains(.,'${repoName}')]/a ${repo_name_element}= Set Variable xpath=//clr-dg-cell[contains(.,'${repoName}')]/a
Retry Element Click ${repo_search_icon} Retry Element Click ${repo_search_icon}
Retry Text Input ${repo_search_input} ${repoName} :For ${n} IN RANGE 1 10
Retry Double Keywords When Error Retry Element Click ${repo_name_element} Page Should Not Contain Element ${repo_name_element} \ Retry Clear Element Text ${repo_search_input}
\ Retry Text Input ${repo_search_input} ${repoName}
\ ${out} Run Keyword And Ignore Error Retry Wait Until Page Contains Element ${repo_name_element}
\ Exit For Loop If '${out[0]}'=='PASS'
\ Capture Page Screenshot gointo_${repoName}.png
\ Sleep 2
Retry Double Keywords When Error Retry Element Click ${repo_name_element} Retry Wait Until Page Not Contains Element ${repo_name_element}
Retry Wait Element ${tag_table_column_pull_command} Retry Wait Element ${tag_table_column_pull_command}
Retry Wait Element ${tag_images_btn} Retry Wait Element ${tag_images_btn}
Capture Page Screenshot gointo_${repoName}.png Capture Page Screenshot gointo_${repoName}.png