Jump to content

Obtain a coord of a id; Click a closable button


Recommended Posts

Hi!

I have a button where I need to close it!

I was doing through  clicking same position in screen but there are some id's that have different sizes.

What are the possible ways to click this closable button?

  • Is there a way to close it through id?
  • Is there a way to get it's position through it's ID?

 

Thanks in advance!

Capture.PNG

Capture1.PNG

Link to comment
Share on other sites

A more detailed description of the situation would hopefully yield a better answer. For example, you could have provided the following information --

  • Browser name
  • Website's URL
  • etc

If you are using IE, you can retrieve a reference to the Div element with _IEGetObjById and then click it using _IEAction. If that doesn't work, then you'll need to provide additional information.

Link to comment
Share on other sites

27 minutes ago, Danp2 said:

A more detailed description of the situation would hopefully yield a better answer. For example, you could have provided the following information --

  • Browser name
  • Website's URL
  • etc

If you are using IE, you can retrieve a reference to the Div element with _IEGetObjById and then click it using _IEAction. If that doesn't work, then you'll need to provide additional information.

I tried with _IEAction but that didn't work.

Here some information, ask if you need something more.

Browser name - IE

Title: http://www.consulta.plus/#!convenio - Internet Explorer

Link to comment
Share on other sites

The entire script is pretty big, here are another try to click it:

 

Local $testando = _IEGetObjById ($oIE, "gwt-uid-59")
      Local $aPos1=ControlGetPos ( "http://www.consulta.plus/#!convenio - Internet Explorer", "", $testando )
      MsgBox($MB_SYSTEMMODAL, "", "Position: " & $aPos1)
      _IEAction($testando, "click")
      ;_IEAction($testando, "quit")
      _IEAction($testando, "delete")
      ;_IEAction($testando, "invisible")
      _IEAction($testando, "disable")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...