ubot.prin 0 Posted September 5, 2015 Report Share Posted September 5, 2015 (edited) 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 September 5, 2015 by ubot.prin Quote Link to post Share on other sites
pash 504 Posted September 5, 2015 Report Share Posted September 5, 2015 what is you code? Quote Link to post Share on other sites
jomark3 25 Posted September 6, 2015 Report Share Posted September 6, 2015 Try clicking it as an image. Quote Link to post Share on other sites
Ptrick125 45 Posted September 7, 2015 Report Share Posted September 7, 2015 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? Quote Link to post Share on other sites
ubot.prin 0 Posted September 7, 2015 Author Report Share Posted September 7, 2015 (edited) 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 September 7, 2015 by ubot.prin Quote Link to post Share on other sites
trendco 0 Posted May 16, 2016 Report Share Posted May 16, 2016 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? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 17, 2016 Report Share Posted May 17, 2016 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. Quote Link to post Share on other sites
trendco 0 Posted May 17, 2016 Report Share Posted May 17, 2016 I have a Router from which i would download the Phonebook each Day.Type: "AVM 7490" Quote Link to post Share on other sites
deliter 203 Posted May 18, 2016 Report Share Posted May 18, 2016 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 Quote Link to post Share on other sites
trendco 0 Posted May 18, 2016 Report Share Posted May 18, 2016 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 issuebut 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) Quote Link to post Share on other sites
deliter 203 Posted May 19, 2016 Report Share Posted May 19, 2016 no idea,I guess it is a click issue have no idea why the second one doesnt work if the first does sorry Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.