How to login to a website e.g. Lithium site like support.mozilla.org using mechanize:

form=login_page.forms[1]# 2nd form on the page, search form is firstform.field_with(id: 'lia-login').value=userid# id from developer toolsform.field_with(id: 'lia-password').value=passwordpage=form.submit

How to loop over multiple ids e.g. in this case ids of Other Languages links:

tkb_page.css('div.tkb-other-language-link').eachdo|l|# do somethingend

How to get the text of link e.g. in this case the text is the name of the language e.g. Deutsch for German