Jump to content
UBot Underground

Download File clicking dialog box


Recommended Posts

i have an list of url all url for download particular file.i want pic one url and search in majestic seo site and download its csv file related to that url.and this process is going on loop.the problem is that how can i click download dialog box and download csv file according to particular url.please suggest me how can i do this task.i have try many times but its not done.

Edited by Ebizon
Link to post
Share on other sites

It wont work with more than one dialog box open, so your loop has to save it then go to the next one.

 

as far as the dialog box is concerned, try practicing a simple image download from the ubot site first, if you can get that working, you'll find magestic easier to do.

 

there are 2 options to save file images, there is save image element too.

 

you could also post the part of your code here, and we can have a look

Link to post
Share on other sites
  • 2 years later...

Hi,
this is an old topic, but highly relevant to my problem. I'm trying to download backlinks from a given domain from the list and everything is fine until the export window comes up. When I run only the node responsible for clicking on export button it works. When I run whole sequence it doesn't.
 
Here's my code:

add list to list(%listDomains,$list from file("{$special folder("Application")}\\test.txt"),"Delete","Global")
set(#loopCounter,0,"Global")
navigate("https://majestic.com/reports/site-explorer","Wait")
loop while(#loopCounter < $list total(%listDomains)) {
    set(#domainToCheck,$list item(%listDomains,#loopCounter),"Global")
    wait(2)
    change attribute(<name="q">,"value",#domainToCheck)
    wait for browser event("Everything Loaded","")
    click(<id="explorersubmit">,"Left Click","No")
    wait for browser event("Everything Loaded","")
    click($element offset(<tagname="a">,95),"Left Click","No")
    wait for browser event("Everything Loaded","")
    wait(3)
    click($element offset(<class="csvlink">,0),"Left Click","No")
    wait for browser event("Everything Loaded","")
    wait(2)
    allow popups("In New Window")
    wait for element(<id="export-button">,"","Appear")
    wait(3)
    plugin command("WindowsCommands.dll", "click mouse", "majBot* - UBot Studio Stealth Professional Edition", "HwndWrapper[UBot Studio.exe;;a3c5dd0f-fabe-4b61-aad0-a8b4d0128df2]", 1148, 583, "Left Click")
    wait(3)
    navigate("https://majestic.com/reports/site-explorer/top-backlinks","Wait")
    wait for browser event("Everything Loaded","")
    remove from list(%listDomains,#loopCounter)
    increment(#loopCounter)
}

 
It pulls domains from the list and user should be already logged. Probably there is some unecessary code, like allow popups, but I tried everything I could think of. Here's the screenshot of this window:
woGGs2H.png
 
I've tried double-clicking, wait between couple of clicks etc. It seems ubot doesn't recognize this window at all, when I try to mark any element of it it doesn't pull anything.
 
Can someone direct me to the right direction, please? :)
 
This is my first post here, I'm just starting with ubot. It can be frustrating, especially when I'm starting, but love the possibilities I can have with it.
 
Cheers,
Michal

Edited by koziu
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...