Jump to content
anhoang

Can not click IE with name or id or class or text

Recommended Posts

anhoang

thanks you for read my post
and i need ur help
i have html 
<span style="transition:color 250ms; width: 100%; text-align: left; color: rgb(33, 33, 33); line-height: inherit; font-family: inherit; font-size: 18px; font-style: inherit; font-variant: inherit; font-weight: 500; display: block; white-space: normal; -ms-word-wrap: break-word; box-sizing: border-box; font-size-adjust: inherit; font-stretch: inherit;">Khác</span>

can u help me click this border-box?
thanks all!!!

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Could you please give meaningful titles to your threads? Attracts much more users to read your thread and to help you with your problem ;)

 

  • Like 1

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Jos

.. and don't start firing the same question in PM's to forum members as stated in the forum rules....
For clarity: I am not your BRO !

 

  • Like 1

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
anhoang

thank all!
this is my first post and sorry so much if i have error
my english so poor
im sorry
i can catch Obj name, id, class, innertext but cant click
someone help me plz
thanks!

Share this post


Link to post
Share on other sites
anhoang

i have problem
i can catch Obj by name, id, class, innertext but cant click

i used _IEAction($Form, 'click')
$Form.click()
$Form.checked=true
but that all do not work

someone help me plz
thanks for  u help

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

post the whole script. you have given nothing that anyone can help you with. also, you started a new thread for the same issue.

does this example code work for you? trying to determine what your issues are is difficult when you don't post your whole script. this is from Help file and it works fine. Does it work for you? then you can use this as your template to get where you need to be.

Example 1 from help:

; Open a browser with the "form" example, get a reference
; to the submit button by name and "click" it. This technique
; of submitting forms is useful because many forms rely on JavaScript
; code and "onClick" events on their submit button making _IEFormSubmit()
; not perform as expected

#include <IE.au3>

Local $oIE = _IE_Example("form")
Local $oSubmit = _IEGetObjByName($oIE, "submitExample")
_IEAction($oSubmit, "click")
_IELoadWait($oIE)

 

Edited by Earthshine
  • Like 1

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
anhoang

i used select element and this is html i want click 
<div style="background: rgba(255, 255, 255, 0); left: 0px; top: 0px; width: 100%; right: 0px; bottom: 0px; overflow: hidden; position: absolute; -ms-user-select: none; transform: none;"><span></span></div>

Share this post


Link to post
Share on other sites
anhoang
Posted (edited)

huhu

 

Edited by anhoang

Share this post


Link to post
Share on other sites
anhoang

        Local $Forms = _IETagNameGetCollection($oIE,'div')
        for $Form in $Forms
            if StringInStr($Form.GetAttribute("style"),'padding: 0px; transition:opacity 500ms, transform 500ms; width: 100%; vertical-align: top; display: flex; position: relative; box-sizing: border-box; opacity: 1; -ms-user-select: none; transform: none;')  then
                ;MsgBox(1,'','')
                _IEFormElementSetValue($Form, "Something")
                _IEAction($Form, 'click')
            EndIf
        Next

cant work
someone help me plz!!!
thanks ur help!

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

nobody is going to do this for you. ;)

look up _IEGetObjById, that example works fine and should be what you want. you need to read the help file more.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
anhoang

thank you!
it is hard for me
...
they did hide id and name ...

Share this post


Link to post
Share on other sites
Subz

Please don't PM me, prefer to keep this within the forum.

With that being said, please post more html, in our OP you had Khác within the span, but in your other post you had no innertext within the span.  So please post several lines above and several lines below the <span> you wish to click and we might be able to assist with a solution.

Share this post


Link to post
Share on other sites
Jos
8 hours ago, Subz said:

Please don't PM me, prefer to keep this within the forum.

@anhoang, I already have told you NOT to PM people before:

 

On ‎24‎-‎3‎-‎2018 at 1:09 AM, Jos said:

.. and don't start firing the same question in PM's to forum members as stated in the forum rules....
For clarity: I am not your BRO !

So consider this your final warning!

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

×