do you happen to know if there is a way to define both elements and locators using string or symbol interpolation while using the site-prism gem?
I'm trying to do something like this:
0.upto(@adults) do {
element :"adult#{index}", "#passenger-first-name-#{index}"
element :"adult#{index}", "#passenger-last-name-#{index}"
index+=1
}
But I'm getting the following syntax error at executing:
syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' (SyntaxError) element :"adult#{index}" , "#passenger-first-name-#{index}"
I was reading here that symbols DO allow interpolation: http://www.robertsosinski.com/2009/01/11/the-difference-between-ruby-symbols-and-strings/
Maybe I am missing something? Thanks a lot!