ruby - Watir-Webdriver - Putting a list into an array -


i trying compare 2 dropdown lists automation keep getting error.

the html code:

<div class="ngcelltext col1 colt1" ng-class="col.colindex()"><span ng-cell-text="" class="ng-binding">our equipment</span></div> 

my watir code:

@activitylist = array.new @activitylist = @browser.select_list(:xpath,'//*[@id="abreakdown"]/div[3]/div[3]/div/div[2]/div/div/div[4]/div[2]/div/div/div/span').option puts @activitylist 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -