Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

If the user has chosen to prioritize xpath identification, the xpath check is performed first, if the item is not found, the name check is performed.

Action icon

Image RemovedImage Added

...

Settings of parameters

Input parameters

ParameterDescription
XML-document contextContext of the open XML-document. You can open the XML-document with the "Load XML" action.
Search methodMethod according to which the XML-element will be found. There are two options available: By element name, By element's XPath. 
Element nameSpecified when selecting value "By element name" in the "Search method" field.
Element's XPathSpecified when selecting the value "By element's XPath" in the "Search method" field. It is possible to specify both the path to the element and the element itself in the field. More details in the section: Get win-element

Output parameters

Result Boolean type -  "true" if the element exists in the XML-document, or "false" if the element is not found.

Settings of parameters

Свойство
Property
Описание
Description
Тип
Type
Пример заполнения
Filling example
Обязательность
Mandatory 
заполнения поля
field
Параметры
Parameters
Контекст
XML-
документа
document context
XML-документ, в котором будет проверяться существование элемента
The XML document in which the existence of the element will be checked.Robin.XML
Контекст
XML context
Да
Yes

Способ поиска

Параметр устанавливает способ поиска элемента
Search methodThe parameter sets the element search method.Robin.String
По имени XML-элемента

Да

Имя элемента

Имя элемента, который необходимо проверить на существование. Если в поле «Способ поиска» выбран поиск по имени, это поле обязательно должно быть заполнено. Если выбран другой способ поиска, значение в этом поле не будет учитываться

Yes
Element NameThe name of the element to be checked for existence. If search by name is selected in the «Search Method» field, this field must be filled in. If a different search method is selected, the value in this field will not be taken into account.Robin.String
BOOK

No

Нет

Element’s XPath
элемента
The path to the element that needs to be checked for existence. If XPath search is selected in the «Search Method» field, this field must be filled in. If a different search method is selected, the value in this field will not be taken into account
Путь к элементу, который необходимо проверить на существование. Если в поле «Способ поиска» выбран поиск по XPath, это поле обязательно должно быть заполнено. Если выбран другой способ поиска, значение в этом поле не будет учитываться
.Robin.String
msctls_statusbar32[1035,8]/text[2,1182]*Notepad++

Нет


No
Results
ResultThe action will return «true» if the element is contained in the XML document, or «false» if the element is not found
Результаты

Результат

Действие вернет «true», если элемент содержится в XML-документе, или «false», если элемент не найден
.Robin.Booleantrue

Special conditions of use

...