Comments (4)
Can you please provide the code for your test and we'll try to repro the issue?
Thanks
from easyrepro.
Thanks for reply.
Below are the code snippets which we have used to select the Review form after creation of case.
-
Creating the new case
public override bool Execute(XrmBrowser xrmBrowser)
{
string Command = "New case"
xrmBrowser.CommandBar.ClickCommand(Command);
xrmBrowser.ThinkTime(PostThinkTime(1000));
return true;
} -
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;
} -
Saving the case
public override bool Execute(XrmBrowser xrmBrowser)
{
xrmBrowser.Entity.Save(PreThinkTime(2000));
xrmBrowser.ThinkTime(PostThinkTime(1000));
return true;
} -
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.
@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.
@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)
- [BUG] Setting value on Subject field on Case entity (tree-view type)
- [FEATURE] Read the Values from the SLA Timer Section
- [HOW-TO] Run tests on Jenkins
- [HOW-TO] Use with Customer Service Workspace app
- [HOW-TO] <implement read data from excel in easyrepro> HOT 2
- Command xrmApp.Navigation.OpenSubArea("Area", "Sub-Area"); running in Local but failing in pipeline
- How to Close Alert dialogue box of Dynamics crm Opened via Xrm.Navigation.openAlertDialog.
- .NET 6 not .NET Core 6
- Timeout Issue with System.Net.HttpWebRequest.GetResponse()
- [BUG] <Getting webdriver exception "unknown error: unable to discover open pages" when running the test on server through ADO test plan. Code works locally>
- [BUG]GetFormNotifications() does not get notifications text. Get error
- Moving to .NET Core HOT 1
- MFA secret key issue HOT 8
- How to click on the phone (subgrid record header) phone number HOT 5
- Url is not working even after adding & in the url in app.config file HOT 1
- How can I effectively load and execute the EasyRepro framework within Visual Studio Code? HOT 1
- Not able to find xpath from inspect element for any change area options.
- [HOW-TO] Using .NET Core HOT 2
- [BUG] Sample Project won't build - missing NuGet package: Selenium.WebDriver.ChromeDriver - Visual Studio 2022 HOT 1
- Not able to receive sms OTP on Twilio number. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyrepro.