public FormCollection Filter(Predicate <Form> predicate) { return(new FormCollection(domContainer, DoFilter(Find.ByElement(predicate)))); }
public Div Div(Predicate <Div> predicate) { return(Div(Find.ByElement(predicate))); }
public Area Area(Predicate <Area> predicate) { return(Area(Find.ByElement(predicate))); }
public virtual TableBody TableBody(Predicate <TableBody> predicate) { return(TableBody(Find.ByElement(predicate))); }
public TextField TextField(Predicate <TextField> predicate) { return(TextField(Find.ByElement(predicate))); }
public Para Para(Predicate <Para> predicate) { return(Para(Find.ByElement(predicate))); }
public SelectList SelectList(Predicate <SelectList> predicate) { return(SelectList(Find.ByElement(predicate))); }
public TElement ElementOfType <TElement>(Predicate <TElement> predicate) where TElement : Element { return(ElementOfType <TElement>(Find.ByElement(predicate))); }
public ButtonCollection Filter(Predicate <Button> predicate) { return(new ButtonCollection(domContainer, DoFilter(Find.ByElement(predicate)))); }
public ParaCollection Filter(Predicate <Para> predicate) { return(new ParaCollection(domContainer, DoFilter(Find.ByElement(predicate)))); }
public TableCell TableCell(Predicate <TableCell> predicate) { return(TableCell(Find.ByElement(predicate))); }
/// <summary> /// Returns the <see cref="Options" /> which matches the specified expression. /// </summary> /// <param name="predicate">The expression to use.</param> /// <returns></returns> public Option Option(Predicate <Option> predicate) { return(Option(Find.ByElement((predicate)))); }
/// <summary> /// Waits until the given expression is <c>true</c>. /// </summary> /// <param name="predicate">The expression to use.</param> /// <param name="timeout">The timeout.</param> public virtual void WaitUntil(Predicate <TElement> predicate, int timeout) { WaitUntil(Find.ByElement(predicate), timeout); }
/// <summary> /// Waits until the given expression is <c>true</c>. /// Wait will time out after <see cref="Settings.WaitUntilExistsTimeOut"/> seconds. /// </summary> /// <param name="predicate">The expression to use.</param> public virtual void WaitUntil(Predicate <TElement> predicate) { WaitUntil(Find.ByElement(predicate), Settings.WaitUntilExistsTimeOut); }
public Label Label(Predicate <Label> predicate) { return(Label(Find.ByElement(predicate))); }
/// <summary> /// Finds a table cell within the table row itself (excluding content from any tables that /// might be nested within it). /// </summary> /// <param name="predicate">The predicate</param> /// <returns>The table cell</returns> public virtual TableCell OwnTableCell(Predicate <TableCell> predicate) { return(OwnTableCell(Find.ByElement(predicate))); }
public Link Link(Predicate <Link> predicate) { return(Link(Find.ByElement(predicate))); }
/// <summary> /// Returns a <see cref="Constraint"/> which can be applied on a <see cref="TableRowCollection"/> /// to filter out <see cref="TableRow"/> elements contained in a tfoot section. /// </summary> /// <returns></returns> /// <seealso cref="IsHeaderRow"/> /// <example> /// Following example shows how to get only the rows inside a tfoot section: /// <code> /// var browser = new IE("www.watin.net/examples/tables.htm"); /// var tableRows = browser.Table("table_id").OwnTableRows; /// /// var footerRows = tableRows.Filter(TableRow.IsFooterRow()); /// </code> /// If you don't want header rows in your tablerows collection apply to <see cref="NotConstraint"/>: /// <code> /// var browser = new IE("www.watin.net/examples/tables.htm"); /// var tableRows = browser.Table("table_id").OwnTableRows; /// /// var noFooterRows = tableRows.Filter(!TableRow.IsFooterRow()); /// </code> /// </example> public static Constraint IsFooterRow() { return(Find.ByElement(element => element.Parent.TagName.ToLowerInvariant() == "tfoot")); }
public RadioButton RadioButton(Predicate <RadioButton> predicate) { return(RadioButton(Find.ByElement(predicate))); }
public TableRowCollection Filter(Predicate <TableRow> predicate) { return(new TableRowCollection(domContainer, DoFilter(Find.ByElement(predicate)))); }
public Table Table(Predicate <Table> predicate) { return(Table(Find.ByElement(predicate))); }
public CheckBox CheckBox(Predicate <CheckBox> predicate) { return(CheckBox(Find.ByElement(predicate))); }
public virtual TableRow TableRow(Predicate <TableRow> predicate) { return(TableRow(Find.ByElement(predicate))); }
public Element Element(Predicate <Element> predicate) { return(Element(Find.ByElement(predicate))); }
public Span Span(Predicate <Span> predicate) { return(Span(Find.ByElement(predicate))); }
public FileUpload FileUpload(Predicate <FileUpload> predicate) { return(FileUpload(Find.ByElement(predicate))); }
public Image Image(Predicate <Image> predicate) { return(Image(Find.ByElement(predicate))); }
public Form Form(Predicate <Form> predicate) { return(Form(Find.ByElement(predicate))); }
public Button Button(Predicate <Button> predicate) { return(Button(Find.ByElement(predicate))); }
/// <summary> /// Returns the table body section belonging to this table (not including table body sections /// from tables nested in this table). /// </summary> /// <param name="predicate">The expression to use.</param> /// <returns></returns> public override TableBody TableBody(Predicate <TableBody> predicate) { return(TableBody(Find.ByElement(predicate))); }