I know how to find an object by .classname and by elementname and i think by #idname but how do i find by the value of its name?
I know how to find an object by .classname and by elementname and i
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can find elements by the the value of an attribute with
where
elementis an arbitrary selector (HTML element,.classname, or#ID) andattributecan be any attribute that you put inside the tags, e.g.srcforimgelements orhrefforaelements or alsonamefor form field elements.For example
could be rewritten as (assuming the element is a
div):Of course the later usage is no improvement but maybe it illustrates how the attribute selector works.