--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
If i need to randomly set the text depending on my test i would just do
Set state as New York
job_application_page.set_state 'New York'
or use the default
job_application_page.set_state
in my page objects i would do something like this
class JobApplicationPage < BasePage
def set_state
state.send_keys(state_name)
end
def state
@driver.find_element(:id => 'state')
end
atleast in ruby i would but again i may not have understood the question