diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-07-10 23:45:51 +0200 |
---|---|---|
committer | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-07-14 15:28:47 +0200 |
commit | d17227830438f7a7e0d5de82b5a447771dfe8f25 (patch) | |
tree | c565dc058e2ddbd0d5564776be6669c43821dbca /svx | |
parent | af1eee15fdacbef4d43f130750b7dbee432ef39b (diff) |
uitest : Add support for "ToolBox" Objects for example" "bottom find bar"
This patch will help us in testing any ToolBox Objects by this lines :
>> variable_name = MainWindow.getChild(Bar_name)
>> variable_name.executeAction("CLICK", mkPropertyValues({"POS": poition_x }))
for position_x you just put the id of which entry in the ToolBox do you want to press on it .
Also This patch set the ID of the bottom find bar to be "FindBar" to be able to select it in UITests .
Change-Id: I360cdbde47be188c49c6d61bf5df4df5caa6a23e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98549
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 4305e95d1c9f..730acf5dece1 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -1544,6 +1544,7 @@ void SAL_CALL FindbarDispatcher::dispatch( const css::util::URL& aURL, const css css::uno::Reference< css::awt::XWindow > xWindow(xUIElement->getRealInterface(), css::uno::UNO_QUERY); VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow ); ToolBox* pToolBox = static_cast<ToolBox*>(pWindow.get()); + pToolBox->set_id("FindBar"); if ( pToolBox ) { ToolBox::ImplToolItems::size_type nItemCount = pToolBox->GetItemCount(); |