Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Medium] При создании кастомного локатора учитываются невидимые элементы, что приводит к ошибке #1678

Open
InnaRadionova opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@InnaRadionova
Copy link

JDN v 3.15.10 Back-end v 0.2.62
Chrome Version 122.0.6261.113 (Official Build) (64-bit)

При создании кастомного локатора учитываются невидимые элементы, что приводит к ошибке.
Примечание: ошибка добавления невидимых элементов в список локаторов была исправлена в задаче 1657

Шаги воспроизведения:

  1. Открыть страницу (например, google.com), проинспектировать элемент и скопировать его Full xPass (например, для кнопки "мне повезет!")
  2. Открыть плагин JDN и нажать кнопку + Page Object -> Generate All
  3. После создания списка объектов, нажать кнопку + Custom Locator
  4. В полях создания локатора заполнить поля: внести имя (любое), Block Type (Button), в поле Locator внести скопированное значение xPass из первого шага.

Actual behavior
В поле Locator отображается ошибка: "Duplicate locator detected. Please, edit or refer to the original locator for further actions." Это говорит о том, что валидатор не отсекает невидимые элементы.

Expected behavior
Кастомный локатор успешно добавляется, валидатор отсекает невидимые элементы.

2024-03-15 13 47 28

2024-03-15 13 34 14

@InnaRadionova InnaRadionova added the bug Something isn't working label Mar 15, 2024
@InnaRadionova InnaRadionova added this to the Release 3.16 milestone Mar 15, 2024
@Iogsotot Iogsotot added this to BackLog in JDN.AI Board via automation Apr 4, 2024
@Iogsotot Iogsotot removed this from the Release 3.16 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants