Open deep-hub opened 4 years ago
@TYLEROL
Hi I am a bit new to this as well but will try my best to help.
Can you share how you are getting your errors in detail? What steps to make to recreate this error etc...
Came across this error recently and ended up changing the Loginresult in LoginDialog.cs to wrap the password sendkeys/submit (L128-L130) within the following:
driver.WaitUntilVisible(By.CssSelector("div[id$='loginMessage']"));
if (driver.IsVisible(By.CssSelector("div[id$='loginMessage']")))
{
//sendkeys stuff...
}
Might not help, but there you go.
Thanks for everyone for the reply. Please rply as soon as possible. It will be really helpful. I am working on this project whereby I required ADFS login to be working.
Basically I am trying to run contact,case, lead test cases, which requires ADFS login to enter the website. but it is not working , though ADFS page is available. and in earlier post @TYLEROL mentioned in version 8.1 , ADFS page is there , so it should work, but it is not working for me. I dont know if i have mentioned ADFS page data into contact entity or not.
Do i have do extra coding for it in contact, lead, case entity test case page. Please let me know. Thanks in advance.
@TYLEROL @jason-lachance @spr0ut
Could you please provide resolution to above query, stuck in this, tried all the methods.
Thanks in advance!!!!!
@deep-hub , what error message are you receiving as a part of the failed test for the ADFS login?
Assuming a standard ADFS forms based login experience, what you have so far looks okay. Do you know which version of ADFS you are using?
Note: You must be using a forms based login experience -- this will not work for a Windows Authentication prompt.
Thanks, Tyler
Please help. Will really appreciate on quick response. Thanks in advance.
Please let me know what changes to made. Easy repro version 8.1, I check earlier post, it was written ADFS login works fine.
------------Contact page information of web browser dynamic 365
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Dynamics365.UIAutomation.Api; using Microsoft.Dynamics365.UIAutomation.Browser; using System; using System.Collections.Generic; using System.Security;
namespace Microsoft.Dynamics365.UIAutomation.Sample { [TestClass] public class CreateContact {
}
-------------------ADFS login page information-----------------
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Dynamics365.UIAutomation.Api; using Microsoft.Dynamics365.UIAutomation.Browser; using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Security;
namespace Microsoft.Dynamics365.UIAutomation.Sample { [TestClass] public class ADFSLogin { private readonly SecureString _username = System.Configuration.ConfigurationManager.AppSettings["OnlineUsername"].ToSecureString(); private readonly SecureString _password = System.Configuration.ConfigurationManager.AppSettings["OnlinePassword"].ToSecureString(); private readonly Uri _xrmUri = new Uri(System.Configuration.ConfigurationManager.AppSettings["OnlineCrmUrl"].ToString());
/*
}