• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# FluentAutomation.ElementProxy类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FluentAutomation.ElementProxy的典型用法代码示例。如果您正苦于以下问题:C# ElementProxy类的具体用法?C# ElementProxy怎么用?C# ElementProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ElementProxy类属于FluentAutomation命名空间,在下文中一共展示了ElementProxy类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Count

 public void Count(ElementProxy element, int count)
 {
     Parallel.ForEach(element.Elements, e =>
     {
         this.BuildAssertProvider(e.Item1).Count(new ElementProxy(e.Item1, e.Item2), count);
     });
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:7,代码来源:MultiAssertProvider.cs


示例2: AppendText

 public void AppendText(ElementProxy element, string text)
 {
     this.RepackExceptions(() => Parallel.ForEach(element.Elements, e =>
     {
         e.Item1.AppendText(new ElementProxy(e.Item1, e.Item2), text);
     }));
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:7,代码来源:MultiCommandProvider.cs


示例3: Value

 public void Value(ElementProxy element, string value)
 {
     Parallel.ForEach(element.Elements, e =>
     {
         this.BuildAssertProvider(e.Item1).Value(new ElementProxy(e.Item1, e.Item2), value);
     });
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:7,代码来源:MultiAssertProvider.cs


示例4: RightClick

 public IActionSyntaxProvider RightClick(ElementProxy element)
 {
     this.commandProvider.RightClick(element);
     return this;
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:5,代码来源:ActionSyntaxProvider.cs


示例5: Text

 public void Text(ElementProxy element, string text)
 {
     Parallel.ForEach(element.Elements, e =>
     {
         this.BuildAssertProvider(e.Item1).Text(new ElementProxy(e.Item1, e.Item2), text);
     });
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:7,代码来源:MultiAssertProvider.cs


示例6: On

            /// <summary>
            /// Specified <paramref name="element"/> that should have matching CSS class.
            /// </summary>
            /// <param name="element">IElement factory function.</param>
            public AssertSyntaxProvider On(ElementProxy element)
            {
                if (this.notMode)
                    this.assertProvider.NotCssProperty(element, this.propertyName, this.propertyValue);
                else
                    this.assertProvider.CssProperty(element, this.propertyName, this.propertyValue);

                return this.assertSyntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:13,代码来源:AssertSyntaxProvider.cs


示例7: Exists

 /// <summary>
 /// Assert the element specified does not exist.
 /// </summary>
 /// <param name="selector">Element reference.</param>
 public AssertSyntaxProvider Exists(ElementProxy element)
 {
     this.assertProvider.NotExists(element);
     return this.assertSyntaxProvider;
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:9,代码来源:AssertSyntaxProvider.cs


示例8: Attribute

 public void Attribute(ElementProxy element, string attributeName, string attributeValue)
 {
     Parallel.ForEach(this.providers, x => this.BuildAssertProvider(x.Key).Attribute(element, attributeName, attributeValue));
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:4,代码来源:MultiAssertProvider.cs


示例9: Upload

 public IActionSyntaxProvider Upload(ElementProxy element, string fileName)
 {
     return this.Upload(element, 0, 0, fileName);
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:4,代码来源:ActionSyntaxProvider.cs


示例10: To

            /// <summary>
            /// End Drag/Drop operation at specified <paramref name="targetElement"/>.
            /// </summary>
            /// <param name="targetElement">IElement factory function.</param>
            public IActionSyntaxProvider To(ElementProxy targetElement)
            {
                if (this.offsetX != 0 || this.offsetY != 0)
                {
                    this.syntaxProvider.commandProvider.DragAndDrop(this.sourceElement, offsetX, offsetY, targetElement, 0, 0);
                }
                else
                {
                    this.syntaxProvider.commandProvider.DragAndDrop(this.sourceElement, targetElement);
                }

                return this.syntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:17,代码来源:ActionSyntaxProvider.cs


示例11: DragDropSyntaxProvider

 internal DragDropSyntaxProvider(ActionSyntaxProvider syntaxProvider, ElementProxy element)
 {
     this.syntaxProvider = syntaxProvider;
     this.sourceElement = element;
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:5,代码来源:ActionSyntaxProvider.cs


示例12: CssClass

 public void CssClass(ElementProxy element, string className)
 {
     Parallel.ForEach(element.Elements, e =>
     {
         this.BuildAssertProvider(e.Item1).CssClass(new ElementProxy(e.Item1, e.Item2), className);
     });
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:7,代码来源:MultiAssertProvider.cs


示例13: Visible

 public void Visible(ElementProxy element)
 {
     Parallel.ForEach(this.providers, x => this.BuildAssertProvider(x.Key).Visible(element));
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:4,代码来源:MultiAssertProvider.cs


示例14: From

            /// <summary>
            /// Select from specified <paramref name="element"/>.
            /// </summary>
            /// <param name="element">IElement factory function.</param>
            public IActionSyntaxProvider From(ElementProxy element)
            {
                if (this.mode == SelectionOption.Value)
                {
                    if (this.value is string)
                    {
                        this.syntaxProvider.commandProvider.SelectValue(element, this.value);
                    }
                    else if (this.value is string[])
                    {
                        this.syntaxProvider.commandProvider.MultiSelectValue(element, this.value);
                    }
                }
                else if (this.mode == SelectionOption.Text)
                {
                    if (this.value is string)
                    {
                        this.syntaxProvider.commandProvider.SelectText(element, this.value);
                    }
                    else if (this.value is string[])
                    {
                        this.syntaxProvider.commandProvider.MultiSelectText(element, this.value);
                    }
                }
                else if (this.value is int)
                {
                    this.syntaxProvider.commandProvider.SelectIndex(element, this.value);
                }
                else if (this.value is int[])
                {
                    this.syntaxProvider.commandProvider.MultiSelectIndex(element, this.value);
                }

                return this.syntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:39,代码来源:ActionSyntaxProvider.cs


示例15: Scroll

 public IActionSyntaxProvider Scroll(ElementProxy element)
 {
     this.commandProvider.Hover(element);
     return this;
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:5,代码来源:ActionSyntaxProvider.cs


示例16: Frame

 /// <summary>
 /// Switch focus to a previously selected frame/iframe
 /// </summary>
 /// <param name="frameElement"></param>
 /// <returns></returns>
 public IActionSyntaxProvider Frame(ElementProxy frameElement)
 {
     this.syntaxProvider.commandProvider.SwitchToFrame(frameElement);
     return this.syntaxProvider;
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:10,代码来源:ActionSyntaxProvider.cs


示例17: Of

            /// <summary>
            /// Specified <paramref name="elements"/> to be counted.
            /// </summary>
            /// <param name="elements">IElement collection factory function.</param>
            public AssertSyntaxProvider Of(ElementProxy elements)
            {
                if (this.notMode)
                    this.assertProvider.NotCount(elements, count);
                else
                    this.assertProvider.Count(elements, this.count);

                return this.assertSyntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:13,代码来源:AssertSyntaxProvider.cs


示例18: In

            /// <summary>
            /// Enter text into specified <paramref name="element"/>.
            /// </summary>
            /// <param name="element">IElement factory function.</param>
            public IActionSyntaxProvider In(ElementProxy element)
            {
                if (!element.Element.IsText)
                    throw new FluentException("Enter().In() is only supported on text elements (input, textarea, etc).");

                if (this.eventsEnabled)
                {
                    this.syntaxProvider.commandProvider.EnterText(element, text);
                }
                else
                {
                    this.syntaxProvider.commandProvider.EnterTextWithoutEvents(element, text);
                }

                return this.syntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:20,代码来源:ActionSyntaxProvider.cs


示例19: In

            /// <summary>
            /// Specified <paramref name="element"/> that should have a matching Value.
            /// </summary>
            /// <param name="element"></param>
            public AssertSyntaxProvider In(ElementProxy element)
            {
                if (!string.IsNullOrEmpty(this.value))
                {
                    if (this.notMode)
                        this.assertProvider.NotValue(element, this.value);
                    else
                        this.assertProvider.Value(element, this.value);
                }
                else if (this.matchFunc != null)
                {
                    if (this.notMode)
                        this.assertProvider.NotValue(element, this.matchFunc);
                    else
                        this.assertProvider.Value(element, this.matchFunc);
                }

                return this.assertSyntaxProvider;
            }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:23,代码来源:AssertSyntaxProvider.cs


示例20: NotCssProperty

 public void NotCssProperty(ElementProxy element, string propertyName, string propertyValue)
 {
     Parallel.ForEach(this.providers, x => this.BuildAssertProvider(x.Key).NotCssProperty(element, propertyName, propertyValue));
 }
开发者ID:netusers2014,项目名称:FluentAutomation,代码行数:4,代码来源:MultiAssertProvider.cs



注:本文中的FluentAutomation.ElementProxy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Protocol.TField类代码示例发布时间:2022-05-24
下一篇:
C# Controls.Control类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap