Skip to content

Commit e76c8e1

Browse files
committed
Added test about windows path and back slash
1 parent 7634621 commit e76c8e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utest/test/keywords/approved_files/test_selenium_options_parser.test_parse_options_string.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ Selenium options string to dict
1616
13) [{'method': [';arg1']}]
1717
14) [{'method': ['arg1', 2, 'arg2']}]
1818
15) [{'method': ['arg1']}]
19+
16) [{'add_argument': ['-profile']}, {'add_argument': ['C:\\path\to\\profile']}]
20+
17) [{'add_argument': ['-profile']}, {'add_argument': ['C:\\path\\to\\profile']}]

utest/test/keywords/test_selenium_options_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def test_parse_options_string(options, reporter):
5858
results.append(options._parse('method(";arg1")'))
5959
results.append(options._parse('method ( "arg1" , 2 ,"arg2" )'))
6060
results.append(options._parse("method('arg1')"))
61+
results.append(options._parse('add_argument("-profile"); add_argument("C:\\\\path\\to\\\\profile")'))
62+
results.append(options._parse(r'add_argument("-profile"); add_argument("C:\\path\\to\\profile")'))
6163
verify_all('Selenium options string to dict', results, reporter=reporter)
6264

6365

0 commit comments

Comments
 (0)