insure no exception (if failed, return 0) and change 'load' to 'networkidle'

This commit is contained in:
Jason Lee
2024-02-26 22:07:08 +08:00
parent 889c22975e
commit 0edbcf404d
5 changed files with 47 additions and 14 deletions

View File

@@ -61,7 +61,7 @@
"expected": {
"fromStation": "BOM",
"toStation": "STO",
"time": "{Year}-{Month0D}-{DayD}"
"time": "{Year}-{Month0D}-{Day0D}"
}
}
}

View File

@@ -65,8 +65,8 @@
"to": "this Sunday"
},
"expected": {
"from": "{DoW}, {Month} {DayD}",
"to": "{DoW}, {Month} {DayD}",
"from": "{DoW}, {Month} {Day0D}",
"to": "{DoW}, {Month} {Day0D}",
"city": "New York City Hotels",
"adult": "2 adults",
"rank": "Price (low to high)"

View File

@@ -22,6 +22,20 @@
"tcp:localhost:1337"
]
}
},
{
"type": "chrome_open_tabs",
"parameters": {
"urls_to_open": [
"https://seatgeek.com/"
]
}
},
{
"type": "activate_window",
"parameters": {
"window_name": "Google Chrome"
}
}
],
"trajectory": "trajectories/",
@@ -37,7 +51,7 @@
"expected":{
"type": "rule",
"rules":{
"expected": ["https://seatgeek\\.com/help/articles/\\d+-Buying-Tickets"]
"expected": ["Buying-Tickets"]
}
}
}