Skip to content

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

@bangonkali

Description

@bangonkali

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions