Skip to content

Commit ed6d19f

Browse files
committed
Robot Framework support
1 parent 2208e00 commit ed6d19f

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

languages.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,11 @@
15181518
"blank": true,
15191519
"extensions": ["rst"]
15201520
},
1521+
"Robot Framework": {
1522+
"line_comment": ["#"],
1523+
"important_syntax": ["***"],
1524+
"extensions": ["robot", "resource"]
1525+
},
15211526
"Roc": {
15221527
"line_comment": ["#"],
15231528
"quotes": [

tests/data/robot.resource

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 11 lines 7 code 2 comments 2 blanks
2+
*** Settings ***
3+
Library SeleniumLibrary
4+
5+
*** Variables ***
6+
# Setting firefox as browser
7+
${BROWSER} Firefox
8+
9+
*** Keywords ***
10+
Go To Github Repo
11+
Open Browser https://github.com/XAMPPRocky/tokei ${BROWSER}

tests/data/robot.robot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 12 lines 9 code 1 comments 2 blanks
2+
*** Settings ***
3+
Resource robot.resource
4+
5+
*** Variables ***
6+
${TAB TEXT} "Pull requests"
7+
8+
*** Test Cases ***
9+
Go To Pull Requests
10+
Wait Until Element Is Visible xpath=//a[contains(text(), "${TAB TEXT}")]
11+
Click Element xpath=//a[contains(text(), "${TAB TEXT}")]
12+
Wait Until Element Is Visisble xpath=//span[text() = "New pull request"]

0 commit comments

Comments
 (0)