Hi All,
I have figured out the solution to the first question.
We can indeed pass 2 html tags to find method when you are using mechanize package.Below is the code snippet to do so:-
Fortunately the above snippet could yield an output.I however could not get an answer to the second question.foreach my $element ($mech->find('span','strong')) { my $attr_class=$element->attr('class')|| next; print Dumper($attr_class); }
In reply to Re: Passing 2 tags to find() method
by Kaustubh
in thread Passing 2 tags to find() method
by Kaustubh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |