public FormCollection Filter(Predicate <Form> predicate)
 {
     return(new FormCollection(domContainer, DoFilter(Find.ByElement(predicate))));
 }
예제 #2
0
 public Div Div(Predicate <Div> predicate)
 {
     return(Div(Find.ByElement(predicate)));
 }
예제 #3
0
 public Area Area(Predicate <Area> predicate)
 {
     return(Area(Find.ByElement(predicate)));
 }
예제 #4
0
 public virtual TableBody TableBody(Predicate <TableBody> predicate)
 {
     return(TableBody(Find.ByElement(predicate)));
 }
예제 #5
0
 public TextField TextField(Predicate <TextField> predicate)
 {
     return(TextField(Find.ByElement(predicate)));
 }
예제 #6
0
 public Para Para(Predicate <Para> predicate)
 {
     return(Para(Find.ByElement(predicate)));
 }
예제 #7
0
 public SelectList SelectList(Predicate <SelectList> predicate)
 {
     return(SelectList(Find.ByElement(predicate)));
 }
예제 #8
0
 public TElement ElementOfType <TElement>(Predicate <TElement> predicate) where TElement : Element
 {
     return(ElementOfType <TElement>(Find.ByElement(predicate)));
 }
예제 #9
0
 public ButtonCollection Filter(Predicate <Button> predicate)
 {
     return(new ButtonCollection(domContainer, DoFilter(Find.ByElement(predicate))));
 }
예제 #10
0
 public ParaCollection Filter(Predicate <Para> predicate)
 {
     return(new ParaCollection(domContainer, DoFilter(Find.ByElement(predicate))));
 }
예제 #11
0
 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))));
 }
예제 #13
0
 /// <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);
 }
예제 #14
0
 /// <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);
 }
예제 #15
0
 public Label Label(Predicate <Label> predicate)
 {
     return(Label(Find.ByElement(predicate)));
 }
예제 #16
0
 /// <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)));
 }
예제 #17
0
 public Link Link(Predicate <Link> predicate)
 {
     return(Link(Find.ByElement(predicate)));
 }
예제 #18
0
 /// <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"));
 }
예제 #19
0
 public RadioButton RadioButton(Predicate <RadioButton> predicate)
 {
     return(RadioButton(Find.ByElement(predicate)));
 }
예제 #20
0
 public TableRowCollection Filter(Predicate <TableRow> predicate)
 {
     return(new TableRowCollection(domContainer, DoFilter(Find.ByElement(predicate))));
 }
예제 #21
0
 public Table Table(Predicate <Table> predicate)
 {
     return(Table(Find.ByElement(predicate)));
 }
예제 #22
0
 public CheckBox CheckBox(Predicate <CheckBox> predicate)
 {
     return(CheckBox(Find.ByElement(predicate)));
 }
예제 #23
0
 public virtual TableRow TableRow(Predicate <TableRow> predicate)
 {
     return(TableRow(Find.ByElement(predicate)));
 }
예제 #24
0
 public Element Element(Predicate <Element> predicate)
 {
     return(Element(Find.ByElement(predicate)));
 }
예제 #25
0
 public Span Span(Predicate <Span> predicate)
 {
     return(Span(Find.ByElement(predicate)));
 }
예제 #26
0
 public FileUpload FileUpload(Predicate <FileUpload> predicate)
 {
     return(FileUpload(Find.ByElement(predicate)));
 }
예제 #27
0
 public Image Image(Predicate <Image> predicate)
 {
     return(Image(Find.ByElement(predicate)));
 }
예제 #28
0
 public Form Form(Predicate <Form> predicate)
 {
     return(Form(Find.ByElement(predicate)));
 }
예제 #29
0
 public Button Button(Predicate <Button> predicate)
 {
     return(Button(Find.ByElement(predicate)));
 }
예제 #30
0
 /// <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)));
 }