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
As noted in a recent Stack Overflow question, the dynamic element locator requires the tag name to be specified. This is pretty awkward looking when the tag name is unknown:
class MyPage
include PageObject
def do_stuff
element('element', class: 'class_name').text
end
end
We should make the tag name optional. Instead the tag name should be specified like any other locator:
# When the tag name is unknown
element(class: 'class_name')
# When the tag name is known
element(tag_name: 'custom_tag', class: 'class_name')
The text was updated successfully, but these errors were encountered:
As noted in a recent Stack Overflow question, the dynamic element locator requires the tag name to be specified. This is pretty awkward looking when the tag name is unknown:
We should make the tag name optional. Instead the tag name should be specified like any other locator:
The text was updated successfully, but these errors were encountered: