From fd2198feafb546ac931e2420e7afd7fc9462aea7 Mon Sep 17 00:00:00 2001 From: YevgeniyShunevych Date: Mon, 29 May 2017 12:40:20 +0300 Subject: [PATCH] #29 OuterXPath functionality --- .../Attributes/ControlSearch/FindAttribute.cs | 6 ++--- .../ControlSearch/FindSettingsAttribute.cs | 22 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Atata/Attributes/ControlSearch/FindAttribute.cs b/src/Atata/Attributes/ControlSearch/FindAttribute.cs index e0a8075f..7c821c65 100644 --- a/src/Atata/Attributes/ControlSearch/FindAttribute.cs +++ b/src/Atata/Attributes/ControlSearch/FindAttribute.cs @@ -41,7 +41,7 @@ public int Index } /// - /// Gets or sets the visibility. The default value is Visible. + /// Gets or sets the visibility. The default value is . /// public Visibility Visibility { @@ -61,7 +61,7 @@ public Visibility Visibility } /// - /// Gets or sets the scope source. The default value is Parent. + /// Gets or sets the scope source. The default value is . /// public ScopeSource ScopeSource { @@ -80,7 +80,7 @@ public ScopeSource ScopeSource } /// - /// Gets or sets the outer XPath. The default value is null. + /// Gets or sets the outer XPath. The default value is null, meaning that the control is searchable as descendant (using ".//" XPath) in scope source. /// public string OuterXPath { diff --git a/src/Atata/Attributes/ControlSearch/FindSettingsAttribute.cs b/src/Atata/Attributes/ControlSearch/FindSettingsAttribute.cs index beb6e152..31185cd8 100644 --- a/src/Atata/Attributes/ControlSearch/FindSettingsAttribute.cs +++ b/src/Atata/Attributes/ControlSearch/FindSettingsAttribute.cs @@ -39,7 +39,16 @@ public int Index } /// - /// Gets or sets the scope source. The default value is Parent. + /// Gets or sets the visibility. The default value is . + /// + public Visibility Visibility + { + get { return Properties.Get(nameof(Visibility), Visibility.Visible); } + set { Properties[nameof(Visibility)] = value; } + } + + /// + /// Gets or sets the scope source. The default value is . /// public ScopeSource ScopeSource { @@ -48,7 +57,7 @@ public ScopeSource ScopeSource } /// - /// Gets or sets the outer XPath. The default value is null. + /// Gets or sets the outer XPath. The default value is null, meaning that the control is searchable as descendant (using ".//" XPath) in scope source. /// public string OuterXPath { @@ -64,14 +73,5 @@ public Type Strategy get { return Properties.Get(nameof(Strategy)); } set { Properties[nameof(Strategy)] = value; } } - - /// - /// Gets or sets the visibility. The default value is Visible. - /// - public Visibility Visibility - { - get { return Properties.Get(nameof(Visibility), Visibility.Visible); } - set { Properties[nameof(Visibility)] = value; } - } } }