From: Love U Ruby Date: 2013-04-30T17:26:27+09:00 Subject: Re: Issue with Selenium-webdriver Inside my loop, I have statements like below: ============================ elems = driver.find_elements(:xpath,"//div[contains(@id,'20120692.outline')]/input") puts elems[1].attribute(:value),elems[1] elems[0].click if elems[1].attribute(:value) == "No" puts elems[1].attribute(:value),elems[1] ============================ It outputs when I ran the script: Yes # Yes # "Supplier Edit Location Request" No # 1 #<~~~ why one here? I expect Yes.Looking at the webpage I can see that check-box getting checked. But from where `1` comes out? ************************************* HTML : =======
Thanks
-- Posted via http://www.ruby-forum.com/.