-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from GuillaumeGomez/property
Add `property` command
- Loading branch information
Showing
26 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
instructions = [ | ||
"""let parsePropertyElem = await page.$(\"a\"); | ||
if (parsePropertyElem === null) { throw '\"a\" not found'; } | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElem);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
instructions = [ | ||
"""let parsePropertyElem = await page.$(\"a\"); | ||
if (parsePropertyElem === null) { throw '\"a\" not found'; } | ||
await page.evaluate(e => { | ||
e[\"\\\"b\"] = \"c\"; | ||
}, parsePropertyElem);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
instructions = [ | ||
"""let parsePropertyElemJson = await page.$(\"a\"); | ||
if (parsePropertyElemJson === null) { throw '\"a\" not found'; } | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElemJson);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
instructions = [ | ||
"""let parsePropertyElemJson = await page.$(\"a\"); | ||
if (parsePropertyElemJson === null) { throw '\"a\" not found'; } | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElemJson); | ||
await page.evaluate(e => { | ||
e[\"d\"] = \"e\"; | ||
}, parsePropertyElemJson);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `\"` at the end of the string""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
instructions = [ | ||
] | ||
wait = false | ||
warnings = [ | ||
"""Ignoring recursive entry with key `\"a\"`""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `)` or `,` after `\"b\"`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `(\"CSS selector\" or \"XPath\", \"property name\", \"property value\")` or `(\"CSS selector\" or \"XPath\", [JSON object])`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `(\"CSS selector\" or \"XPath\", \"property name\", \"property value\")` or `(\"CSS selector\" or \"XPath\", [JSON object])`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected json as second argument (since there are only two arguments), found a string""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `(\"CSS selector\" or \"XPath\", \"property name\", \"property value\")` or `(\"CSS selector\" or \"XPath\", [JSON object])`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `,` or `)`, found `\"` after `\"b\"`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected json as second argument (since there are only two arguments), found a string""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected `(\"CSS selector\" or \"XPath\", \"property name\", \"property value\")` or `(\"CSS selector\" or \"XPath\", [JSON object])`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """expected json as second argument (since there are only two arguments), found a string""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
instructions = [ | ||
"""let parsePropertyElemJson = await page.$x(\"//a\"); | ||
if (parsePropertyElemJson.length === 0) { throw 'XPath \"//a\" not found'; } | ||
parsePropertyElemJson = parsePropertyElemJson[0]; | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElemJson);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
instructions = [ | ||
"""let parsePropertyElemJson = await page.$x(\"//a\"); | ||
if (parsePropertyElemJson.length === 0) { throw 'XPath \"//a\" not found'; } | ||
parsePropertyElemJson = parsePropertyElemJson[0]; | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\\n\"; | ||
}, parsePropertyElemJson);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
error = """XPath must start with `//`""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
instructions = [ | ||
"""let parsePropertyElem = await page.$x(\"//a\"); | ||
if (parsePropertyElem.length === 0) { throw 'XPath \"//a\" not found'; } | ||
parsePropertyElem = parsePropertyElem[0]; | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElem);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
instructions = [ | ||
"""let parsePropertyElemJson = await page.$x(\"//a\"); | ||
if (parsePropertyElemJson.length === 0) { throw 'XPath \"//a\" not found'; } | ||
parsePropertyElemJson = parsePropertyElemJson[0]; | ||
await page.evaluate(e => { | ||
e[\"b\"] = \"c\"; | ||
}, parsePropertyElemJson);""", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters