Thanks for your response.
The page I was scraping was 6 pages down in an on-line banking site
behind a user id and password--hard to show.
I was doing a "get clickables", numbering them and then using click number.
I suspect something else is going on. The web page dropdown I am trying
to select looks like this:
I wanted to get to "90 days".
What I got when looking for "clickables" was (in part) this:
3: | <div id="selectList0" class="dropdownRow"
onclick="javascript:clickable('30');"> <div id="left_30"
class="sevenYrLeftPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Past 30 days</div> <div id="right_30"
class="sevenYrRightPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Feb 01, 2015
and future</div> </div> |
4: | <div id="left_30" class="sevenYrLeftPart"
onmouseover="hoverIn(this);" onmouseout="hoverOut(this);">Past 30
days</div> <div id="right_30"
class="sevenYrRightPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Feb 01, 2015 and future</div> |
5: | <div id="selectList1" class="dropdownRow"
onclick="javascript:clickable('90');"> <div id="left_90"
class="sevenYrLeftPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Past 90 days</div> <div id="right_90"
class="sevenYrRightPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Dec 03, 2014
and future</div> </div> |
6: | <div id="left_90" class="sevenYrLeftPart"
onmouseover="hoverIn(this);" onmouseout="hoverOut(this);">Past 90
days</div> <div id="right_90"
class="sevenYrRightPart" onmouseover="hoverIn(this);"
onmouseout="hoverOut(this);">Dec 03, 2014 and future</div> |
But there are no buttons, just "onclick javascript" routines.
Is there a way to get one of these routines (specifically:
onclick="javascript:clickable('90');") to run? I think the dropdown may
also re-cast the page so when I try to click #n, it is no longer there
(hence the error).
Thanks for the help,
Jeff
Max Maischein via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=102454 >
>
> Hello Jeff,
>
> you did not show enough code to replicate the problem, so I have to
> guess. My guess is that you are using objects from a different page, and
> these objects are considered dead by Firefox.
>
> A solution doesn't seem readily available without seeing and then
> rewriting your code so that it does not hold onto objects from other
> than the current page.
>
> Firefox should work in most versions up to 31.
>
> -max
>
> Am 02.03.2015 um 17:33 schrieb Jeff EI69 Stalzer via RT:
>> Mon Mar 02 11:33:28 2015: Request 102454 was acted upon.
>> Transaction: Ticket created by ei69jeff@comcast.net
>> Queue: WWW-Mechanize-FireFox
>> Subject: Fwd: MozRepl::RemoteObject: TypeError using click by number
>> Broken in: (no value)
>> Severity: (no value)
>> Owner: Nobody
>> Requestors: ei69jeff@comcast.net
>> Status: new
>> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=102454 >
>>
>>
>>
>>
>>
>>
>> Using WWW::Mechanize::Firefox Running: $mech3->click_button( number =>
>> $W1->TextFd1->GetLine(0) );
>> I get this error:
>>
>>
>> and have found this note on the
>>
>>
>> Mozilla Add-ons Blog <
https://blog.mozilla.org/addons/>
>>
>>
https://blog.mozilla.org/addons/2012/09/12/what-does-cant-access-dead-object-mean/
>>
>> about issues w/ Firefox 15
>>
>> Is this a Firefox version issue? i.e. does WWW::Mechanize::Firefox only
>> work with older versions of Firefox?
>>
>> Thanks, Jeff
>>
>>
>>
>> Using WWW::Mechanize::Firefox Running: $mech3->click_button( number =>
>> $W1->TextFd1->GetLine(0) );
>> I get this error:
>>
>>
>> and have found this note on the
>>
>>
>> Mozilla Add-ons Blog <
https://blog.mozilla.org/addons/>
>>
>>
https://blog.mozilla.org/addons/2012/09/12/what-does-cant-access-dead-object-mean/
>>
>> about issues w/ Firefox 15
>>
>> Is this a Firefox version issue? i.e. does WWW::Mechanize::Firefox only
>> work with older versions of Firefox?
>>
>> Thanks, Jeff
>>
>
>
>