in reply to click on an row in a table using Mechanize::Firefox
Never mind perlmonks, I finally figured it out.
my $veh_btn = '/html/body/div/div[4]/div[1]/form/div[7]/table[3]/tbody +/tr/td/table/tbody/tr[2]/td[1]'; @divs = $mech->xpath( $veh_btn ); $mech->click( { dom => $divs[0], synchronize => 0 } ); if ($mech->success()) { print "\n Success, we clicked the detail screen!\n"; Win32::Sound::Play("ding.wav"); Win32::Sound::Stop(); };
|
|---|