Click Link invokes command shell

43 views
Skip to first unread message

Dev..

unread,
Apr 17, 2013, 1:38:15 PM4/17/13
to seleniu...@googlegroups.com, selenium-...@googlegroups.com, selenium-...@googlegroups.com
Hello
  I have a scenario where clicking on a link invokes a command shell, where i have to execute few commands(lets say ls -ltr).is there any way can we accomplish this using webdriver?

here is the HTML code

<table width="100%" border="0" title="Command Shell - Click to launch" onclick="document.location.href='/abc/ui/bonsai/launch.do?type=1&task=00000017';return false;" onmouseout="this.style.cursor='default'; this.style.backgroundColor='';" onmouseover="this.style.cursor='pointer'; this.style.backgroundColor='#eee';" style="table-layout: fixed; cursor: default;">

where /abc/ui/bonsai/launch.do?type=1&task=0000001 is the command shell

Regards
-Dev

Dev..

unread,
Apr 23, 2013, 12:02:19 PM4/23/13
to seleniu...@googlegroups.com, selenium-...@googlegroups.com
Thanks all for your reply.
@mike yes i am using Java on ubuntu.infact i have tried robot class extensively, somehow its not working out.
Tried autoit on windows.its working like champ.now would like to know if there will be any Autoit replacement for linux.

Thanks
-Dev

Regards
-Dev


On Tue, Apr 23, 2013 at 1:54 AM, Mike Riley <lvsk...@cox.net> wrote:
Since you seem to be using Linux, I think you will need to use the Robot class.  I have never used it myself, but I believe it allows for interaction with System GUI panels.  I am assuming you are using Java.

Mike
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/us_zFFWEmz0J.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages