in reply to Win32::IEAutomation - Getting all links in a page
linkUrl is a method of the 'link obj' not 'Win32::IEAutomation as stated: "Methods supported for link object". The object returned by 'getAllLinks' is 'Win32::IEAutomation::Element' which is the link obj. @links is therefore an array of objects 'hence the hash reference (How perl OO works see link below)'.my @links = $ie->getAllLinks(); $links[0]->linkUrl();
use Data::Dumper; print Dumper( $link[0] );
|
|---|