I'm trying to click a button 'Copy Address' then dropdown item 'Shipping to Billing' option. I'm able to click button by id but my next line of script throws an error, here is what I have -
click_element(@driver, :id, 'copyAddress')
@driver.find_element(:class, 'dropDownMenu')
#select(@driver, :class, 'dropDownMenu', 'Billing to Shipping')
#@driver.find_element(:class, 'dropDownItemOver')
#select(@driver, :class, 'dropDownItem', 'Billing to Shipping')
I've tried all this so far and no luck....After clicking the button I'm trying to get into the dropdownMenu with find_element and then clicking the option 'Billing to Shipping'
any help....thanks