Giter Club home page Giter Club logo

Comments (7)

gohiljayraj avatar gohiljayraj commented on July 20, 2024

Even we are facing the same issue.

from easyrepro.

dtu11 avatar dtu11 commented on July 20, 2024

This is an issue we're currently working on. Once the update is made and released, I'll update the Issue here.

Thanks for the feedback

from easyrepro.

maichung77 avatar maichung77 commented on July 20, 2024

Great, thanks for looking into it!

from easyrepro.

kaceyarnold avatar kaceyarnold commented on July 20, 2024

Here is what I did to get around the email not sent dialog box.
public static void ADFSLoginAction(LoginRedirectEventArgs obj)
{
IWebElement iframeElement;
IWebDriver Cdriver = obj.Driver;
Cdriver.FindElement(By.Id("passwordInput")).SendKeys(obj.Password.ToUnsecureString());

        //Cdriver.ClickWhenAvailable(By.Id("submitButton"), new TimeSpan(0, 0, 6));
        Cdriver.FindElement(By.Id("submitButton")).Submit();
        Cdriver.FindElement(By.Id("idSIButton9")).Submit();
        Cdriver.WaitForPageToLoad();
        try
        { //Workaround for the email not sent warning dialog in the QA environement.
            iframeElement = Cdriver.FindElement(By.Id("InlineDialog_Iframe"));
        }//close try
        catch (NoSuchElementException) { return; } //If there is no warning dialog we are done
        //TODO: Log presence of warning dialog 
        //Since we have an Iframe switch to it
        Cdriver.SwitchTo().Frame(iframeElement);

        Cdriver.FindElement(By.Id("crmDialogFooter"));
        Cdriver.FindElement(By.XPath("//*[@id=\"crmDialogFooter\"]/div[2]"));
        //Due to issues with the framework click is not handled correctly and throws a no such element error
        // Thus the try catch wrapper.
        try { Cdriver.FindElement(By.XPath("//*[@id=\"butBegin\"]")).Click(); }
        catch (NoSuchElementException)
        { //Log that we closed a dialog window.
        }//close catch for Click action

    }//close Internal ADFS login Action

from easyrepro.

gohiljayraj avatar gohiljayraj commented on July 20, 2024

Thanks for your help Kacey Arnold.. Its working for me now. Only concern I have here is if given Xpath or Ids get change in subsequent CRM product patch. We need to keep updating these id's

from easyrepro.

kaceyarnold avatar kaceyarnold commented on July 20, 2024

Yes, but at least you can move forward. Which is what matters? Do what I have taken to doing,
/* ---------------------- This is a hack to get around a bug --------------------------
code
*/ ---------------- End of Hack --------
Now when the fix comes through the hacks are easy to find.
On a side note I thought the email not set up issue was just the nature of tests systems, so I went around it out of habit not even thinking of it as a bug. :)

from easyrepro.

j621z avatar j621z commented on July 20, 2024

This issue has been mitigated and should be pushed to GitHub soon.

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.