FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Simulate a click on a document
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Simulate a click on a document
Posted: Sun Mar 31, 2019 01:35 PM
Giovany Vecchi wrote:Hello try this way

Button := ie:All:Item("btn red-flamingo",0)
Button:Click(.t.)


Code (fw): Select all Collapse
    Button := ie:document:All:Item("btn red-flamingo",0)
    Button:Click(.t.)


it gives an error. :-)
Code (fw): Select all Collapse
   Error description: Error BASE/1004  No exported method: CLICK
   Args:
     [   1] = U   
     [   2] = L   .T.

Stack Calls
===========
   Called from:  => CLICK( 0 )
   Called from: .\ICRA_LBT.prg => WEB_DENEME( 719 )
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Simulate a click on a document
Posted: Sun Mar 31, 2019 07:31 PM
Hi,

This code is ok. just adding .t. parameters in click method.

Code (fw): Select all Collapse
    Button  := ie:document:getElementsByClassName("btn red-flamingo")

        Button[0]:click(.t.)
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Simulate a click on a document
Posted: Mon Apr 01, 2019 03:08 PM
Hi,

I have an website like that
Code (fw): Select all Collapse
<div class="disclaimerContainer" role="alert">
                Eğer E-Devlet E-İmza Uygulamasını indirmediyseniz indirmek için 
                <a href="https://static.turkiye.gov.tr/downloads/e-imza/edevlet-eimza.jnlp" target="_blank">
                        tıklayınız</a>.
            </div>



Code (fw): Select all Collapse
    Button := ie:document:getElementsByClassName("disclaimerContainer")
    ? Button:length


Result is 0.

Any idea?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion