Jump to content

Logout-Bot for my Check


Recommended Posts

Hello,

I need a Logout for my Check but I don't know how :(

I want to click it:

<a class="has_bottom_tooltip" data-method="delete" data-original-title="Logout" href="/users/sign_out" rel="nofollow" title=""><i class="icon-signout"></i>

Can you help me?

<body class="ui_mars application" data-page="dashboard:show">

<header class="navbar navbar-static-top navbar-lab">
<div class="navbar-inner">
<div class="container">
<div class="app_logo">
<span class="separator"></span>
<a class="home has_bottom_tooltip" href="/" title="" data-original-title="Dashboard">
</a><span class="separator"></span>
</div>
<h1 class="project_name">Dashboard</h1>
<ul class="nav">
<li>
<a>
<div class="hide turbolink-spinner">
<i class="icon-refresh icon-spin"></i>
Loading...
</div>
</a>
</li>
</li>
<li>
<a class="has_bottom_tooltip" data-original-title="Public area" href="/public" title=""><i class="icon-globe"></i>
</a></li>
<li>
<li>
<a class="has_bottom_tooltip" data-original-title="New project" href="/projects/new" title=""><i class="icon-plus"></i>
</a></li>
<li>
<a class="has_bottom_tooltip" data-original-title="Profile settings" href="/profile" title=""><i class="icon-user"></i>
</a></li>
<li>
<a class="has_bottom_tooltip" data-method="delete" data-original-title="Logout" href="/users/sign_out" rel="nofollow" title=""><i class="icon-signout"></i>
</a></li>
</ul>
</div>
</div>
</header>

Thanks!

Link to comment
Share on other sites

I tried:

Func logout ()
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
If $oLink.href = "<a href='/users/sign_out' a class='has_bottom_tooltip' data-original-title='Logout' rel='nofollow"</a> 
_IEAction($oLink, "click")
ExitLoop
EndIf
Next
EndFunc
_IENavigate ($oIE, "https://git.lb.com/users/sign_out")
_IELoadWait($oIE)

but nothing happened. Sorry I am a Noob and I thought anybody can help me without teaching me the common phrases...

Link to comment
Share on other sites

Next Try;

Func logout ()
_IELinkGetCollection($oIE)
Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
MsgBox(0, "Link Info", $oLink.href)
If $oLink.href = "<href='https://git.lb.com/users/sign_out' " Then ;click on the youtube link
_IEAction($oLink, "click")
ExitLoop
EndIf
Next
EndFunc

Msg-Box show me all links of the site. The required https://git.lb.com/users/sign_out , too. But the Click-Event doesn't start.

Link to comment
Share on other sites

Try...

Func logout()
    _IELinkGetCollection($oIE)
    Local $oLinks = _IELinkGetCollection($oIE)
    Local $iNumLinks = @extended
    MsgBox(0, "Link Info", $iNumLinks & " links found")
    For $oLink In $oLinks
        MsgBox(0, "Link Info", $oLink.href)
        If $oLink.href = "https://git.lb.com/users/sign_out" Then ;click on the youtube link
            MsgBox(0, "HIYA", "Found")
            _IEAction($oLink, "click")
            ExitLoop
        EndIf
    Next
EndFunc   ;==>logout

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

 

Try...

Func logout()
    _IELinkGetCollection($oIE)
    Local $oLinks = _IELinkGetCollection($oIE)
    Local $iNumLinks = @extended
    MsgBox(0, "Link Info", $iNumLinks & " links found")
    For $oLink In $oLinks
        MsgBox(0, "Link Info", $oLink.href)
        If $oLink.href = "https://git.lb.com/users/sign_out" Then ;click on the youtube link
            MsgBox(0, "HIYA", "Found")
            _IEAction($oLink, "click")
            ExitLoop
        EndIf
    Next
EndFunc   ;==>logout

Many Thanks to you!

You made my day!!!!!!!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...