Giter Club home page Giter Club logo

Comments (4)

dtu11 avatar dtu11 commented on July 20, 2024

Can you please provide the code for your test and we'll try to repro the issue?

Thanks

from easyrepro.

kishantt avatar kishantt commented on July 20, 2024

Thanks for reply.
Below are the code snippets which we have used to select the Review form after creation of case.

  1. Creating the new case
    public override bool Execute(XrmBrowser xrmBrowser)
    {
    string Command = "New case"
    xrmBrowser.CommandBar.ClickCommand(Command);
    xrmBrowser.ThinkTime(PostThinkTime(1000));
    return true;
    }

  2. Creating the form
    //It is working fine here
    public override bool Execute(XrmBrowser xrmBrowser)
    {
    string Form = "Create";
    xrmBrowser.Entity.SelectForm(Form, PreThinkTime(7000));
    xrmBrowser.ThinkTime(PostThinkTime(0));
    return true;
    }

  3. Saving the case
    public override bool Execute(XrmBrowser xrmBrowser)
    {
    xrmBrowser.Entity.Save(PreThinkTime(2000));
    xrmBrowser.ThinkTime(PostThinkTime(1000));
    return true;
    }

  4. Trying to change the form from Create to Review (used same code as above point number 2, only string value Form has changed to Review)
    //IT IS NOT WORKING i.e. not opening the dropdown (xpath of dropdown is '{ "Entity_SelectForm", "id("formselectorcontainer")"}')
    public override bool Execute(XrmBrowser xrmBrowser)
    {
    string Form = "Review";
    xrmBrowser.Entity.SelectForm(Form, PreThinkTime(7000));
    xrmBrowser.ThinkTime(PostThinkTime(0));
    return true;
    }

Please let us know if you need any information.

-Thanks

from easyrepro.

j621z avatar j621z commented on July 20, 2024

@kishantt Please try using the following code, which is working as expected. My instance does not have a "Create" or "Review" form sections. My form sections are "Summary" and I used "Social Details" respectively. However, it's working as expected and I'm using version 8.2. What version are you using?

The XPath to the flyout form section container: //*[@id="flyoutFormSection_Container"]

        using (var xrmBrowser = new XrmBrowser(TestSettings.Options))
        {
            xrmBrowser.LoginPage.Login(_xrmUri, _username, _password);
            xrmBrowser.GuidedHelp.CloseGuidedHelp();

            xrmBrowser.ThinkTime(500);
            xrmBrowser.Navigation.OpenSubArea("Service", "Cases");

            string Command = "New case";
            xrmBrowser.CommandBar.ClickCommand(Command);
            xrmBrowser.ThinkTime(1000);

            string Form = "Summary";
            xrmBrowser.Entity.SelectForm(Form, 1000);
            

            xrmBrowser.Entity.SetValue("title", "TestReviewForm");
            xrmBrowser.Entity.SelectLookup("customerid", 0);
            xrmBrowser.Entity.Save(2000);

            xrmBrowser.Entity.SelectForm("Social Details", 1000);
        }

from easyrepro.

j621z avatar j621z commented on July 20, 2024

@kishantt closing issue. Please open new issue if code provided above doesn't resolve the issue for you. Thank you.

from easyrepro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.