Show / Hide Table of Contents

Class SBlockElementAction

A block that can perform an action on an element inside an HTML page.

Inheritance
System.Object
ViewModelBase
BlockBase
SBlockElementAction
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
BlockBase.Label
BlockBase.Disabled
BlockBase.IsSelenium
BlockBase.IsCaptcha
BlockBase.FromLS(List<String>)
BlockBase.ReplaceValuesRecursive(String, BotData)
BlockBase.ReplaceValues(String, BotData)
BlockBase.ParseArguments(String, Char, Char)
BlockBase.UpdateSeleniumData(BotData)
BlockBase.InsertVariables(BotData, Boolean, Boolean, List<String>, String, String, String)
BlockBase.SaveScreenshot(Screenshot, BotData)
BlockBase.SaveScreenshot(Bitmap, BotData)
BlockBase.GetFirstAvailableFileName(String, String, String)
BlockBase.MakeValidFileName(String, Boolean)
BlockBase.TruncatePretty(String, Int32)
ViewModelBase.PropertyChanged
ViewModelBase.OnPropertyChanged(String)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class SBlockElementAction : BlockBase, INotifyPropertyChanged

Constructors

| Improve this Doc View Source

SBlockElementAction()

Creates an element action block.

Declaration
public SBlockElementAction()

Properties

| Improve this Doc View Source

Action

The action to be performed on the element.

Declaration
public ElementAction Action { get; set; }
Property Value
Type Description
ElementAction
| Improve this Doc View Source

ElementIndex

The index of the element in case the locator matches more than one.

Declaration
public int ElementIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ElementString

The value of the locator.

Declaration
public string ElementString { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Input

The input data.

Declaration
public string Input { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsCapture

Whether the output variable should be marked for Capture.

Declaration
public bool IsCapture { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Locator

The element locator.

Declaration
public ElementLocator Locator { get; set; }
Property Value
Type Description
ElementLocator
| Improve this Doc View Source

OutputVariable

The name of the output variable.

Declaration
public string OutputVariable { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Recursive

Whether the GetText and GetAttribute actions should be executed on all the elements matched by the locator and return a list of values.

Declaration
public bool Recursive { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

FromLS(String)

Builds a block from a line of LoliScript code.

Declaration
public override BlockBase FromLS(string line)
Parameters
Type Name Description
System.String line

The line of LoliScript code

Returns
Type Description
BlockBase

The parsed block object

Overrides
BlockBase.FromLS(String)
| Improve this Doc View Source

GetElementScreenShot(IWebDriver, IWebElement)

Screenshots an element on the page.

Declaration
public static Bitmap GetElementScreenShot(IWebDriver driver, IWebElement element)
Parameters
Type Name Description
OpenQA.Selenium.IWebDriver driver

The selenium driver

OpenQA.Selenium.IWebElement element

The element to screenshot

Returns
Type Description
System.Drawing.Bitmap

The bitmap screenshot of the element

| Improve this Doc View Source

Process(BotData)

Executes the actual block logic.

Declaration
public override void Process(BotData data)
Parameters
Type Name Description
BotData data

The BotData needed for variable replacement

Overrides
BlockBase.Process(BotData)
| Improve this Doc View Source

ToLS(Boolean)

Converts the block to LoliScript code.

Declaration
public override string ToLS(bool indent = true)
Parameters
Type Name Description
System.Boolean indent
Returns
Type Description
System.String
Overrides
BlockBase.ToLS(Boolean)

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX