comfast-dev / comfast-ui

Browser Automation library / framework based on Selenium
GNU Affero General Public License v3.0
0 stars 0 forks source link

Feature: Error message pointer inside XPath selectors #1

Open piotrkluz opened 1 year ago

piotrkluz commented 1 year ago

Feature that will point which element inside XPath selector has not found. Actual behaviour points to entire selector (("My text" is not exist)

form.someClass >> .//select/option[contains(.,'My text')]
                  ^
                  Element not found

Expected behaviour:

form.someClass >> .//select/option[contains(.,'My text')]
                  ^         ^
                  |         Not found 'option[contains(.,'My text')]'
                  <select><option>Option 1</select><...
piotrkluz commented 1 year ago

XPath parsing and parthenses matching RegEx will be needed in this feature: https://regex101.com/r/eBtSTM/3