or
var sizeDropbox = itemSaved.Find.ByXPath<HtmlSelect>("//select[1]"); var selectedSizeIndex = new Random().Next(1, sizeDropbox.Options.Count - 1); var selectedSize = sizeDropbox.Options[selectedSizeIndex]; sizeDropbox.SelectByIndex(selectedSizeIndex);Can anyone help, please?var quantityDropbox = itemSaved.Find.ByXPath<HtmlSelect>("//select[2]"); var selectedQuantityIndex = new Random().Next(1, quantityDropbox.Options.Count - 1); var selectedQuantity = quantityDropbox.Options[selectedQuantityIndex]; quantityDropbox.SelectByIndex(selectedQuantityIndex);(The itemSaved object is the TableRow parent element)
DataGrid grid = app.Find.ByName(
"cboResident"
).As<DataGrid>();
Grid containerGrid = app.Find.ByText(
"SomeText"
).Parent(
"Grid"
).As<Grid>();