Expect.NET

Expect.NET is a .NET library which ports of expect scripts functionality. The library is distributed under The MIT License.

Source code can be found on GitHub: https://github.com/wiwanek/Expect.NET

The latest version is available on NuGet: https://www.nuget.org/packages/Expect.NET/

Current plans and work progress can be found on JazzHub: https://hub.jazz.net/project/iwanek/ExpectNET

10 thoughts on “Expect.NET

    • Hi!
      Sure. I can release version 2.0.0 with removed case sensitive problems. I wasn’t aware that VB is not case-sensitive :o

      Could you send me some code example in VB (something simple like spawning cmd.exe and sending command ‘dir’) so I can test it before release?

      Regards,
      Wojtek

  1. Hello!
    Is it possible to just attach Expect to any process? If I do so like
    Process proc = Process.Start(“cmd.exe”);

    ISession session = Expect.Expect.Spawn(new Expect.ProcessSpawnable(server));

    It creates new instance of cmd.exe…
    Thank you!

    • ISession session = Expect.Expect.Spawn(new Expect.ProcessSpawnable(proc));

      Sorry, my mistake :D

  2. Ok, solved :D Sorry for spamming.
    =>
    Process proc = new Process();
    proc.StartInfo = new ProcessStartInfo(“cmd.exe”);

    ISession session = Expect.Expect.Spawn(new Expect.ProcessSpawnable(proc));

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">