Hi Jian I think Selenium seems to over ride the System.in . Reading from System.in / BufferedInputStream / Console etc none of the above was successful . . I am running from a command line as part of a TestNG ant task
We did a hack to check for the presence of a file / remove it etc . But I am curious who overrides it Regards Hari On Tue, Jul 14, 2009 at 6:18 PM, Jian Fang<[email protected]> wrote: > Seems Groovy also supports reading from stdin, take the example from > > http://groovy-almanac.org/read-from-stdin/ > > > System.in.eachLine() { line -> > if(line.equals("exit")) > System.exit() > else > println "you entered: $line" > } > > > On Tue, Jul 14, 2009 at 8:45 AM, Jian Fang <[email protected]> wrote: >> >> Java IO console class can do the similar thing, >> >> http://java.sun.com/javase/6/docs/api/java/io/Console.html >> >> But if you run in an IDE, I am not sure you could open the console using >> Java IO console. >> >> Thanks, >> >> Jian >> On Tue, Jul 14, 2009 at 7:52 AM, Harihara Vinayakaram <[email protected]> >> wrote: >>> >>> I solved this by putting a read() in the TestNG code . The user >>> presses return in the window >>> >>> Thanks >>> Regards >>> Hari >>> >>> On Tue, Jul 14, 2009 at 4:01 PM, Harihara Vinayakaram<[email protected]> >>> wrote: >>> > Hi >>> > I have the following requirement . I have a set of tests which are >>> > being run. But I would like to wait for some event . (i.e.) I would >>> > like the user to click on the page to do the next test . I do not >>> > want to pause for a fixed time . I would like the test to wait for a >>> > click or some event and then proceed to the next test >>> > >>> > Is there a way I can implement this >>> > >>> > Regards >>> > Hari >>> > >>> >>> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
