Sign in to follow this  
Followers 0
Mojo123

Logout-Bot for my Check

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

We are not a fast food place and serve up code on request. Go to rentacoder.com if you want that. You have to make an attempt and try to solve it yourself. Post what you tried and what is not working.

Edited by DarthCookieMonster

Share this post


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

Share this post


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

Share this post


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

Share this post


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

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
Sign in to follow this  
Followers 0