Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#: Need some assistance converting the following Python code to C# #9

Open
bangonkali opened this issue Nov 5, 2014 · 3 comments
Open
Assignees

Comments

@bangonkali
Copy link

Hi guys, I somehow got the previous issue #7 to work. Now I'm having some issues writing the same script in C#.

The problem is once again on how to make sure the object is detected. Here's what I've made so far that builds and works. Only up to that point.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ldtp;
using Ldtpd;

namespace ldtp.test.ie
{
    class Program
    {
        static void Main(string[] args)
        {
            // Indicate arguments here.
            string[] s1 = new string[1] {""};

            Ldtp.Ldtp l = new Ldtp.Ldtp("*Internet Explorer");
            l.LaunchApp("iexplore", s1); // requires arguments by default. this should be optional.
            l.WaitTillGuiExist();
            l.Click("Tools");
            l.WaitTime(1);

        }
    }
}

The following script does not work when appended:

l.SelectMenuItem("mnuContext");

Any suggestions?

@nagappan
Copy link
Member

nagappan commented Nov 5, 2014

John is the primary owner of C# client, assigned to him.

@nagappan
Copy link
Member

John, did you get a chance to look at this issue ?

@yingjunli
Copy link
Member

Hi Nagappan,
I have looked at this issue. Seems no Context menu? I think Bangon should
provide windows info after Tools button is clicked.

Thanks,
John

2014-11-24 5:49 GMT+08:00 Nagappan Alagappan [email protected]:

John, did you get a chance to look at this issue ?


Reply to this email directly or view it on GitHub
#9 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants