You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
looking for supporting multi value in index property for locators like highlighted in code below.
indexed_property(:cart_contents, [
[:span, :title, {:id => 'cart[%s].title[%s]'}],
[:text_field, :quantity, {:id => 'cart[%s].quantity'}],
[:button, :delete, {:id => 'cart[%s].delete'}]
])
The text was updated successfully, but these errors were encountered:
It wasn't obvious, but we actually already have support for this. We are injecting the "index" into the locator Strings. The "index" can be more complex - eg Array or Hash (see https://stackoverflow.com/a/554877/1200545 for String manipulation examples).
looking for supporting multi value in index property for locators like highlighted in code below.
indexed_property(:cart_contents, [
[:span, :title, {:id => 'cart[%s].title[%s]'}],
[:text_field, :quantity, {:id => 'cart[%s].quantity'}],
[:button, :delete, {:id => 'cart[%s].delete'}]
])
The text was updated successfully, but these errors were encountered: