Letractively / autotester

Automatically exported from code.google.com/p/autotester
1 stars 1 forks source link

Consultati​on on Autotester how to click on link with javascript #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Shrinerain,

Thanks so much for sharing the Autotester with us. I love it so much. really 
apprecaited!

I've worked on Autotester for serveral months, it's very useful on my projects. 
and recently I encountered an issue that I do not know how to click on link 
with javascript code even after I tried many different ways, finally failed. I 
searched all the possible solutions on Google, but with very few useful 
materials. 

I found a solution that use ts.objects.link("visible text").MouseClick(x, y), 
now I have some questions,

1. how to measure the value of x, y, it seems that the X, Y is not saying 
screen, would you teach me how to get X, Y value.
2. for my question, there is no any visible text, for this case, is there any 
way to fix it? (refer to below source code)

Below is my source code:
<MAP id=jfreechart-onetime-209112.png name=jfreechart-onetime-209112.png> 
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|PODE|19')" shape=rect alt="" 
coords=866,60,900,314><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|PA|0')" shape=rect alt="" 
coords=802,60,836,316>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|DOE|87')" shape=rect alt="" 
coords=738,60,772,314><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|AFM|52')" shape=rect alt="" 
coords=674,60,708,314>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|NCR|198')" shape=rect alt="" 
coords=610,60,644,314><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|NFR|171')" shape=rect alt="" 
coords=545,60,579,314>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|ATP|4')" shape=rect alt="" 
coords=481,60,515,314><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|MCON|4')" shape=rect alt="" 
coords=417,60,451,314>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|TO|0')" shape=rect alt="" 
coords=353,60,387,316><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|AFLP|6')" shape=rect alt="" 
coords=289,60,323,314>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|HNC3|0')" shape=rect alt="" 
coords=225,60,259,316><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|HNC2|0')" shape=rect alt="" 
coords=160,60,194,316>
<AREA 
href="javascript:codsPH.P.globalCargoTrack.loadDetails('TRANX_GLOBAL_CARGO_TRACK
_EXPORT_ISSUES_CHART','Issues','E|HNC1|0')" shape=rect alt="" 
coords=96,60,130,316><AREA 
href="javascript:codsPH.P.globalCargoTrack.loadAllDetails()" shape=rect alt="" 
coords=412,26,547,39></MAP>

I would deeply appreicate if you could teach me. Thanks so much in advance. I 
really need it in my projects. 

Best wishes,
Jacob

Original issue reported on code.google.com by chenxu76...@gmail.com on 17 Sep 2013 at 2:06