Jump to content
UBot Underground

Recommended Posts

I am not being able to click a button. But it works fine when right click and run. It does not click when the program is run as whole. This is a Save dialogue which has an onclick attribute.

 

Please help with this.

Edited by ubot.prin
Link to post
Share on other sites

I am not being able to click a button. But it works fine when right click and run. It does not click when the program is run as whole. This is a Save dialogue which has an onclick attribute.

 

Please help with this.

 

Can you give us the webpage and the item you want to click?

Link to post
Share on other sites

Below is the code for the button i am trying to click:

<img src="/resource/images/abc.jpg" style="border-width: 0px;cursor: pointer;" onclick="exportExcel()">

 

I tried the following methods to click it:

 

run javascript("exportExcel()")
click(<src="/resource/images/abc.jpg">, "Left Click", "No")
click(<image="___IMAGE___6___IMAGE___">, "Left Click", "No")

 

None of this opens up the save file dialogue box. But it works with no issues when i right click and select 'run node'.

Edited by ubot.prin
Link to post
Share on other sites
  • 8 months later...

I have the same Problem on a Site.

If i right click and select 'run node', it works.

 

If the Script ends after the Click Event, it works also if i run the whole Script.

But if the Script have further Code (for example a wait or something else), it works not!?

 

Whats the Problem there?

Link to post
Share on other sites

I have the same Problem on a Site.

If i right click and select 'run node', it works.

 

If the Script ends after the Click Event, it works also if i run the whole Script.

But if the Script have further Code (for example a wait or something else), it works not!?

 

Whats the Problem there?

 

If you can post the site and code that would be a big help.

Link to post
Share on other sites

I have a Router from which i would download the Phonebook each Day.

Type: "AVM 7490"

 

 

use something like live http headers for firefox,get the exact address of the download,and the http query string

 

and use the download file command

 

This is not a "cannot click button issue" I guess this is more about Ubot handling pop ups issue

Link to post
Share on other sites

the only thing i can see is a POST to

"http://IP-Adress-Router/cgi-bin/firmwarecfg"

nothing more.

 

>>This is not a "cannot click button issue" I guess this is more about Ubot handling pop ups issue

but why does this work:

 

set user agent("Internet Explorer 10")
navigate("192.x.x.x?lp=bookLi","Wait")
type text(<name="uiPass">,"my_password","Standard")
click(<login button>,"Left Click","No")
wait for browser event("Everything Loaded",5)
wait for element(<onclick="saveFonbookLokal()">,"","Appear")
click(<onclick="saveFonbookLokal()">,"Left Click","No")
 

 

and this not:

 

set user agent("Internet Explorer 10")
navigate("192.x.x.x?lp=bookLi","Wait")
type text(<name="uiPass">,"my_password","Standard")
click(<login button>,"Left Click","No")
wait for browser event("Everything Loaded",5)
wait for element(<onclick="saveFonbookLokal()">,"","Appear")
click(<onclick="saveFonbookLokal()">,"Left Click","No")
wait(5)

 

 

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...