Hi,

I know that the get() method returns the element at the specified position in the list,
so does that mean that for this particular sentence of code:

HtmlInput inputMsgKey = (HtmlInput) getSendNotificationForm.getElementsByAttribute("input", "name", "msgKey").get(0);

get(0); will return the "input" element?

Thanks.

it will return the first element of the list.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.