diff --git a/TestApplications/src/WpfApplication/MainWindow.xaml b/TestApplications/src/WpfApplication/MainWindow.xaml
index b0dae22..957b493 100644
--- a/TestApplications/src/WpfApplication/MainWindow.xaml
+++ b/TestApplications/src/WpfApplication/MainWindow.xaml
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:WpfApplication"
mc:Ignorable="d"
Title="FlaUI WPF Test App"
- Height="533.931" Width="629.303"
+ Height="545.931" Width="629.303"
KeyDown="OnKeyDown"
KeyUp="OnKeyUp"
ResizeMode="CanResize">
@@ -95,6 +95,7 @@
PlacementTarget="{Binding ElementName=PopupToggleButton2}"
StaysOpen="False" />
+
diff --git a/TestApplications/src/WpfApplication/MainWindow.xaml.cs b/TestApplications/src/WpfApplication/MainWindow.xaml.cs
index 7aac253..cbf1db8 100644
--- a/TestApplications/src/WpfApplication/MainWindow.xaml.cs
+++ b/TestApplications/src/WpfApplication/MainWindow.xaml.cs
@@ -2,6 +2,7 @@
using System.Windows.Controls;
using System.Windows.Input;
using System.Collections.Generic;
+using System.Windows.Automation;
namespace WpfApplication
{
@@ -104,5 +105,13 @@ private void ResetKeyboard_Click(object sender, RoutedEventArgs e)
lblKeyboardKeyDown.Content = GenerateKeyboardOutput(_keysDown);
lblKeyboardKeyUp.Content = GenerateKeyboardOutput(_keysUp);
}
+
+ private void ChangeAutomationId(object sender, RoutedEventArgs e)
+ {
+ if (sender is Button button)
+ {
+ button.SetValue(AutomationProperties.AutomationIdProperty, "ChangeAutomationIdUpdate");
+ }
+ }
}
}
diff --git a/atests/Application.robot b/atests/Application.robot
index b78e387..6de8871 100644
--- a/atests/Application.robot
+++ b/atests/Application.robot
@@ -9,7 +9,7 @@ Documentation Test suite for application keywords.
... Launch Application With Args Launch Application With Arguments
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library StringFormat
Resource util/Common.robot
diff --git a/atests/Checkbox.robot b/atests/Checkbox.robot
index 1ba699e..ad5ef37 100644
--- a/atests/Checkbox.robot
+++ b/atests/Checkbox.robot
@@ -7,7 +7,7 @@ Documentation Test suite for checkbox keywords.
... Get Checkbox State Get Checkbox State
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library StringFormat
Resource util/Common.robot
diff --git a/atests/Combobox.robot b/atests/Combobox.robot
index d0a1898..547236c 100644
--- a/atests/Combobox.robot
+++ b/atests/Combobox.robot
@@ -17,7 +17,7 @@ Documentation Test suite for combobox keywords.
... Get Combobox Items Count Get Combobox Items Count
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
Library Collections
diff --git a/atests/Configuration.robot b/atests/Configuration.robot
index 07f6559..4d99d1b 100644
--- a/atests/Configuration.robot
+++ b/atests/Configuration.robot
@@ -7,29 +7,25 @@ Documentation Test suite for configuration keywords.
... Is Cache Enabled Is Cache Enabled
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
-*** Test Cases ***
-Is Cache Enabled
- ${RESULT} Is Cache Enabled
- ${IDENTIFIER} Get Uia Identifier
- IF '${IDENTIFIER}'=='UIA2'
- Should Be Equal ${TRUE} ${RESULT}
- ELSE
- Should Be Equal ${FALSE} ${RESULT}
- END
-
-Enable Caching
- Enable Caching
- ${RESULT} Is Cache Enabled
- Should Be Equal ${TRUE} ${RESULT}
+Resource util/Common.robot
+Resource util/XPath.robot
-Disable Caching
- Disable Caching
- ${RESULT} Is Cache Enabled
- Should Be Equal ${FALSE} ${RESULT}
+*** Variables ***
+${XPATH_BUTTON_ELEMENT_ORIGIN} ${MAIN_WINDOW_SIMPLE_CONTROLS}/Button[@AutomationId='ChangeAutomationId']
+${XPATH_BUTTON_ELEMENT_CHANGED} ${MAIN_WINDOW_SIMPLE_CONTROLS}/Button[@AutomationId='ChangeAutomationIdUpdate']
-Refresh Cache
- Fail TODO IMPLEMENT ME
- ${IDENTIFIER} Get Uia Identifier
- Should Be Equal ${IDENTIFIER} ${UIA}
+*** Test Cases ***
+Element Should Be Updated If Property Is Changed
+ [Setup] Init Main Application
+ [Teardown] Stop Application ${MAIN_PID}
+ Element Should Exist ${XPATH_BUTTON_ELEMENT_ORIGIN}
+ Element Should Not Exist ${XPATH_BUTTON_ELEMENT_CHANGED}
+ ${CHILDS} Get Childs From Element ${MAIN_WINDOW_SIMPLE_CONTROLS}
+ Log ${CHILDS}
+ Click ${XPATH_BUTTON_ELEMENT_ORIGIN}
+ ${CHILDS} Get Childs From Element ${MAIN_WINDOW_SIMPLE_CONTROLS}
+ Log ${CHILDS}
+ Element Should Not Exist ${XPATH_BUTTON_ELEMENT_ORIGIN}
+ Element Should Exist ${XPATH_BUTTON_ELEMENT_CHANGED}
diff --git a/atests/Debug.robot b/atests/Debug.robot
index ee3af45..4e44c99 100644
--- a/atests/Debug.robot
+++ b/atests/Debug.robot
@@ -6,7 +6,7 @@ Documentation Test suite for debug keywords.
... Get UIA Identifier Get UIA Identifier
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Element.robot b/atests/Element.robot
index 09021ea..42f5972 100644
--- a/atests/Element.robot
+++ b/atests/Element.robot
@@ -30,7 +30,7 @@ Documentation Test suite for element keywords.
... Wait Until Element Is Visible Timeout Is Reached By Wrong Number
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
Library DateTime
diff --git a/atests/ErrorHandling.robot b/atests/ErrorHandling.robot
index 8b9dcba..f3b4412 100644
--- a/atests/ErrorHandling.robot
+++ b/atests/ErrorHandling.robot
@@ -2,7 +2,7 @@
Documentation Error handling test suite for all common flaui keywords.
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False timeout=0 use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False timeout=0
Library StringFormat
Resource util/Error.robot
diff --git a/atests/Grid.robot b/atests/Grid.robot
index d9eed30..de0b6c5 100644
--- a/atests/Grid.robot
+++ b/atests/Grid.robot
@@ -13,7 +13,7 @@ Documentation Test suite for grid ui keyword usage.
... Get Grid Rows Count Get Grid Rows Count
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Keyboard.robot b/atests/Keyboard.robot
index 4995d2c..832a655 100644
--- a/atests/Keyboard.robot
+++ b/atests/Keyboard.robot
@@ -14,7 +14,7 @@ Documentation Test suite for keyboard keywords.
... False Argument Type
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Listbox.robot b/atests/Listbox.robot
index 71e15f5..4c48a36 100644
--- a/atests/Listbox.robot
+++ b/atests/Listbox.robot
@@ -16,7 +16,7 @@ Documentation Test suite for list box keywords.
... Get Listbox Items Count Get Listbox Items Count
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
Library Collections
diff --git a/atests/Mouse.robot b/atests/Mouse.robot
index 612d64b..2c98f11 100644
--- a/atests/Mouse.robot
+++ b/atests/Mouse.robot
@@ -9,7 +9,7 @@ Documentation Test suite for mouse keywords.
... Drag And Drop Drag And Drop
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library StringFormat
Resource util/Common.robot
diff --git a/atests/RadioButton.robot b/atests/RadioButton.robot
index b953236..7327184 100644
--- a/atests/RadioButton.robot
+++ b/atests/RadioButton.robot
@@ -6,7 +6,7 @@ Documentation Test suite for radio button keywords.
... Get Radiobutton State Get Radiobutton State
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Screenshot.robot b/atests/Screenshot.robot
index 1eb5f58..5097af6 100644
--- a/atests/Screenshot.robot
+++ b/atests/Screenshot.robot
@@ -9,7 +9,7 @@ Documentation Test suite for screenshot keywords.
... Take Manual Screenshot By Keyword
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=True use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=True
Library StringFormat
Library Process
Library String
diff --git a/atests/Tab.robot b/atests/Tab.robot
index a2cb004..8a5d98e 100644
--- a/atests/Tab.robot
+++ b/atests/Tab.robot
@@ -10,7 +10,7 @@ Documentation Test suite for tab keywords.
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library StringFormat
Library Collections
diff --git a/atests/Textbox.robot b/atests/Textbox.robot
index 6419c3c..74878f5 100644
--- a/atests/Textbox.robot
+++ b/atests/Textbox.robot
@@ -6,7 +6,7 @@ Documentation Test suite for textbox keywords.
... Set Text To Textbox Set Text To Textbox
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Tree.robot b/atests/Tree.robot
index 2a80423..37ca59a 100644
--- a/atests/Tree.robot
+++ b/atests/Tree.robot
@@ -27,7 +27,7 @@ Documentation Test suite for list box keywords.
... Selected TreeItem Should Be Selected TreeItem Should Be Item Not Exist
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/Window.robot b/atests/Window.robot
index 0e6a2a1..764338c 100644
--- a/atests/Window.robot
+++ b/atests/Window.robot
@@ -5,7 +5,7 @@ Documentation Test suite for window keywords.
... Close Window Close Window
...
-Library FlaUILibrary uia=${UIA} screenshot_on_failure=False use_cache=${USE_CACHE}
+Library FlaUILibrary uia=${UIA} screenshot_on_failure=False
Library Process
Library StringFormat
diff --git a/atests/apps/WpfApplication.exe b/atests/apps/WpfApplication.exe
index 6a2e6c5..a6ee99e 100644
Binary files a/atests/apps/WpfApplication.exe and b/atests/apps/WpfApplication.exe differ
diff --git a/keen.bat b/keen.bat
index f7ebde4..f77b9d6 100644
--- a/keen.bat
+++ b/keen.bat
@@ -28,13 +28,13 @@ EXIT /B %ERRORLEVEL%
:test_uia2
call cd atests
- call robot --name "UIA2" --variable UIA:UIA2 --variable USE_CACHE:True --outputdir ../result/uia2 .
+ call robot --name "UIA2" --variable UIA:UIA2 --outputdir ../result/uia2 .
call cd ..
EXIT /B %ERRORLEVEL%
:test_uia3
call cd atests
- call robot --name "UIA3" --variable UIA:UIA3 --variable USE_CACHE:False --outputdir ../result/uia3 .
+ call robot --name "UIA3" --variable UIA:UIA3 --outputdir ../result/uia3 .
call cd ..
EXIT /B %ERRORLEVEL%
diff --git a/src/FlaUILibrary/__init__.py b/src/FlaUILibrary/__init__.py
index eb90047..f474f7a 100644
--- a/src/FlaUILibrary/__init__.py
+++ b/src/FlaUILibrary/__init__.py
@@ -18,8 +18,7 @@
RadioButtonKeywords,
ListBoxKeywords,
TreeKeywords,
- TabKeywords,
- ConfigurationKeywords)
+ TabKeywords)
from FlaUILibrary.flaui.interface.valuecontainer import ValueContainer
from FlaUILibrary.robotframework import robotlog
from FlaUILibrary.flaui.module import Screenshot
@@ -45,7 +44,7 @@ class FlaUILibrary(DynamicCore):
Following settings could be used for library init.
- Library screenshot_enabled= screenshot_dir= timeout= use_cache=
+ Library screenshot_enabled= screenshot_dir= timeout=
== XPath locator ==
@@ -94,9 +93,8 @@ class KeywordModules(Enum):
LISTBOX = "Listbox"
TREE = "Tree"
TAB = "Tab"
- CONFIGURATION = "Configuration"
- def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None, timeout=1000, use_cache='True'):
+ def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None, timeout=1000):
"""
FlaUiLibrary can be imported by following optional arguments:
@@ -104,7 +102,6 @@ def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None
``screenshot_on_failure`` indicator to disable or enable screenshot feature.
``screenshot_dir`` is the directory where screenshots are saved.
``timeout`` maximum amount of waiting time in ms for an element find action. Default value is 1000ms.
- ``use_cache`` flag to use cached elements. Default value is True.
If the given directory does not already exist, it will be created when the first screenshot is taken.
If the argument is not given, the default location for screenshots is the output directory of the Robot run,
@@ -114,11 +111,6 @@ def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None
self.mode = FlaUILibrary.RobotMode.TEST_NOT_RUNNING
self.builtin = BuiltIn()
- if use_cache == "False":
- use_cache = False
- else:
- use_cache = True
-
try:
if timeout == "None" or int(timeout) <= 0:
timeout = 0
@@ -126,9 +118,9 @@ def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None
timeout = 1000
if uia == "UIA2":
- self.module = UIA2(timeout, use_cache)
+ self.module = UIA2(timeout)
else:
- self.module = UIA3(timeout, use_cache)
+ self.module = UIA3(timeout)
self.screenshots = Screenshot(screenshot_dir, screenshot_on_failure == 'True')
@@ -148,7 +140,6 @@ def __init__(self, uia='UIA3', screenshot_on_failure='True', screenshot_dir=None
FlaUILibrary.KeywordModules.LISTBOX: ListBoxKeywords(self.module),
FlaUILibrary.KeywordModules.TREE: TreeKeywords(self.module),
FlaUILibrary.KeywordModules.TAB: TabKeywords(self.module),
- FlaUILibrary.KeywordModules.CONFIGURATION: ConfigurationKeywords(self.module)
}
# Robot init
diff --git a/src/FlaUILibrary/flaui/automation/uia.py b/src/FlaUILibrary/flaui/automation/uia.py
index 719f5df..7d789bb 100644
--- a/src/FlaUILibrary/flaui/automation/uia.py
+++ b/src/FlaUILibrary/flaui/automation/uia.py
@@ -14,13 +14,11 @@ class UIA(WindowsAutomationInterface, ABC):
Generic window automation module for a centralized communication handling between robot keywords.
"""
- def __init__(self, timeout: int = 1000, use_cache=True):
+ def __init__(self, timeout: int = 1000):
"""
Creates default UIA window automation module.
``timeout`` is the default waiting value to repeat element find action. Default value is 1000ms.
- ``use_cache`` flag to use caching feature from elements. Default value is True.
"""
- self._use_cache = use_cache
self._actions = {}
self._timeout = timeout
@@ -79,7 +77,7 @@ def get_element(self, identifier: str, ui_type: InterfaceType = None, msg: str =
msg (String) : Custom error message
"""
element = self.action(Element.Action.GET_ELEMENT,
- Element.Container(xpath=identifier, retries=None, name=None),
+ Element.Container(xpath=identifier, retries=None, name=None, use_exception=None),
msg)
if not ui_type:
@@ -87,21 +85,6 @@ def get_element(self, identifier: str, ui_type: InterfaceType = None, msg: str =
return self.cast_element_to_type(element, ui_type)
- def set_caching(self, enable: bool):
- """
- Enable or disable caching feature from windows automation interface.
-
- Args:
- enable : Boolean to enable or disable caching feature.
- """
- self._use_cache = enable
-
- def is_cache_enabled(self):
- """
- Returns flag if cache is enabled or not.
- """
- return self._use_cache
-
@staticmethod
def cast_element_to_type(element: Any, ui_type: InterfaceType):
"""
diff --git a/src/FlaUILibrary/flaui/automation/uia2.py b/src/FlaUILibrary/flaui/automation/uia2.py
index 3d6b10b..b0c4422 100644
--- a/src/FlaUILibrary/flaui/automation/uia2.py
+++ b/src/FlaUILibrary/flaui/automation/uia2.py
@@ -5,13 +5,12 @@
class UIA2(UIA):
"""UIA2 window automation module for a centralized communication handling between robot keywords and Flaui. """
- def __init__(self, timeout=1000, use_cache=True):
+ def __init__(self, timeout=1000):
"""
Creates UIA2 window automation module.
``timeout`` is the default waiting value to repeat element find action. Default value is 1000ms.
- ``use_cache`` flag to use caching feature from elements. Default value is True.
"""
- super().__init__(timeout, use_cache)
+ super().__init__(timeout)
self._uia2 = UIA2Automation()
super().register_action() # pylint: disable=maybe-no-member
@@ -31,19 +30,8 @@ def get_desktop_element(self):
"""
Returns desktop element from automation interface.
"""
- if self._use_cache:
- return self._uia2.GetDesktop()
-
- self.refresh_cache()
return self._uia2.GetDesktop()
- def refresh_cache(self):
- """
- Refresh all desktop elements from windows automation interface.
- """
- self.dispose()
- self._uia2 = UIA2Automation()
-
def dispose(self):
"""
Dispose method to release user automation interface from FlaUI
@@ -52,7 +40,7 @@ def dispose(self):
return
try:
- # C# --> class UIA3Automation : AutomationBase --> abstract class AutomationBase : IDisposable
+ # C# --> class UIA2Automation : AutomationBase --> abstract class AutomationBase : IDisposable
self._uia2.Dispose()
self._uia2 = None
except TypeError:
diff --git a/src/FlaUILibrary/flaui/automation/uia3.py b/src/FlaUILibrary/flaui/automation/uia3.py
index 458188a..aee3c5a 100644
--- a/src/FlaUILibrary/flaui/automation/uia3.py
+++ b/src/FlaUILibrary/flaui/automation/uia3.py
@@ -5,13 +5,12 @@
class UIA3(UIA):
"""UIA3 window automation module for a centralized communication handling between robot keywords and Flaui. """
- def __init__(self, timeout=1000, use_cache=True):
+ def __init__(self, timeout=1000):
"""
Creates UIA3 window automation module.
``timeout`` is the default waiting value to repeat element find action. Default value is 1000ms.
- ``use_cache`` flag to use caching feature from elements. Default value is True.
"""
- super().__init__(timeout, use_cache)
+ super().__init__(timeout)
self._uia3 = UIA3Automation()
super().register_action() # pylint: disable=maybe-no-member
@@ -31,19 +30,8 @@ def get_desktop_element(self):
"""
Returns desktop element from automation interface.
"""
- if self._use_cache:
- return self._uia3.GetDesktop()
-
- self.refresh_cache()
return self._uia3.GetDesktop()
- def refresh_cache(self):
- """
- Refresh all desktop elements from windows automation interface.
- """
- self.dispose()
- self._uia3 = UIA3Automation()
-
def dispose(self):
"""
Dispose method to release user automation interface from FlaUI
diff --git a/src/FlaUILibrary/flaui/interface/windowsautomationinterface.py b/src/FlaUILibrary/flaui/interface/windowsautomationinterface.py
index 261d651..80956c5 100644
--- a/src/FlaUILibrary/flaui/interface/windowsautomationinterface.py
+++ b/src/FlaUILibrary/flaui/interface/windowsautomationinterface.py
@@ -40,27 +40,3 @@ def get_desktop_element(self):
Returns desktop element from automation interface.
"""
raise NotImplementedError('Subclass must override get_desktop_element method')
-
- @abstractmethod
- def set_caching(self, enable: bool):
- """
- Enable or disable caching from windows automation interface.
-
- Args:
- enable : Boolean to enable or disable caching feature.
- """
- raise NotImplementedError('Subclass must override set_caching method')
-
- @abstractmethod
- def refresh_cache(self):
- """
- Refresh all desktop elements from windows automation interface.
- """
- raise NotImplementedError('Subclass must override refresh_cache method')
-
- @abstractmethod
- def is_cache_enabled(self):
- """
- Returns flag if cache is enabled or not.
- """
- raise NotImplementedError('Subclass must override is_cache_enabled method')
diff --git a/src/FlaUILibrary/keywords/__init__.py b/src/FlaUILibrary/keywords/__init__.py
index 3387155..e62ecdd 100644
--- a/src/FlaUILibrary/keywords/__init__.py
+++ b/src/FlaUILibrary/keywords/__init__.py
@@ -1,7 +1,6 @@
from .application import ApplicationKeywords
from .checkbox import CheckBoxKeywords
from .combobox import ComboBoxKeywords
-from .configuration import ConfigurationKeywords
from .debug import DebugKeywords
from .element import ElementKeywords
from .mouse import MouseKeywords
diff --git a/src/FlaUILibrary/keywords/configuration.py b/src/FlaUILibrary/keywords/configuration.py
deleted file mode 100644
index 2293d5d..0000000
--- a/src/FlaUILibrary/keywords/configuration.py
+++ /dev/null
@@ -1,56 +0,0 @@
-from robotlibcore import keyword
-from FlaUILibrary.flaui.automation.uia import UIA
-
-
-class ConfigurationKeywords:
- """
- Interface implementation from specific configuration keywords for robotframework-flaui controlling.
- """
-
- def __init__(self, module: UIA):
- """
- Constructor for configuration keywords.
-
- ``module`` Automation framework module like UIA3 to handle element interaction.
- """
- self._module = module
-
- @keyword
- def enable_caching(self):
- """
- Enable caching from all desktop elements. All desktop elements will be tracked once.
-
- Examples:
- | Enable Caching |
- """
- self._module.set_caching(True)
-
- @keyword
- def disable_caching(self):
- """
- Disable caching from all desktop elements. Each call will update all desktop elements.
-
- Examples:
- | Disable Caching |
- """
- self._module.set_caching(False)
-
- @keyword
- def refresh_cache(self):
- """
- Refresh once cache from all desktop elements.
-
- Examples:
- | Refresh Cache |
- """
- self._module.refresh_cache()
-
- @keyword
- def is_cache_enabled(self):
- """
- Returns if cache is enabled True or not False.
-
- Examples:
- | ${RESULT} Is Cache Enabled |
- """
- return self._module.is_cache_enabled()