grid_cell method
SapTransaction
grid_cell(
- String field, {
- AbstractSelector? selector,
- String? lsdata,
- String? id,
- String? name,
- String? xpath,
- String? css,
- String? tag,
- String? className,
- OnlineAction? before,
- OnlineAction? after,
Implementation
SapTransaction grid_cell(String field,
{AbstractSelector? selector,
String? lsdata,
String? id,
String? name,
String? xpath,
String? css,
String? tag,
String? className,
OnlineAction? before,
OnlineAction? after}) {
if (selector == null) {
if (lsdata != null) {
selector = SapDataField(lsdata);
} else if (id != null) {
selector = WithId(id);
} else if (name != null) {
selector = WithName(name);
} else if (xpath != null) {
selector = XPath(xpath);
} else if (css != null) {
selector = Css(css);
}
}
if (selector == null) {
throw Exception("No selector provided");
}
this.fields[field] = NoSapGridElement(selector,
prepare_action: before, cleanup_action: after);
return this;
}