Skip to content

Commit c386fb4

Browse files
author
Visagan Guruparan
committed
Update locating element log level to warning
1 parent 4977cc7 commit c386fb4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Infrastructure/BotSharp.Abstraction/Browsing/Models/ElementLocatingArgs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ElementLocatingArgs
2929
public bool Parent { get; set; }
3030

3131
public bool FailIfMultiple { get; set; }
32+
[JsonPropertyName("ignore_if_not_found")]
3233
public bool IgnoreIfNotFound { get; set; }
3334

3435
/// <summary>

src/Plugins/BotSharp.Plugin.WebDriver/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-web-locate_element.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"is_read_content": {
1212
"type": "boolean",
1313
"description": "read the content"
14+
},
15+
"ignore_if_not_found": {
16+
"type": "boolean",
17+
"description": "ignore error logging if element not exists"
1418
}
1519
},
1620
"required": [ "selector" ]

0 commit comments

Comments
 (0)