jdi-testing / jdi-light

Powerful Framework for UI Automation Testing on Java
https://jdi-docs.github.io/jdi-light/
MIT License
109 stars 47 forks source link

@SText locator adds excess spaces between words in result XPath expression #1762

Open Serporit opened 4 years ago

Serporit commented 4 years ago

SText

Serporit commented 4 years ago

Found a problem.

splitCamelCase method is used twice here and adds spaces every time (it would be nice to update it as well)

Fix: com.epam.jdi.light.elements.init.InitActions:142

$("Smart Text", aRule(SText.class, (e, a) -> e.setLocator(asTextLocator(splitCamelCase(e.getName()))))), ->

$("Smart Text", aRule(SText.class, (e, a) -> e.setLocator(asTextLocator(e.getName())))),