public string TakeScreenShotsOfMenu(string folder, string name)
        {
            Logger.Info(CultureInfo.CurrentCulture, "Take Screen Shots");
            var el = this.Driver.GetElement(this.menu);

            return(TakeScreenShot.TakeScreenShotOfElement(el, folder, name));
        }
        public string TakeScreenShotsOfTextInIFrame(string folder, string name)
        {
            Logger.Info(CultureInfo.CurrentCulture, "Take Screen Shots");
            var iFrame = this.Driver.GetElement(this.iframe);
            int x      = iFrame.Location.X;
            int y      = iFrame.Location.Y;

            this.Driver.SwitchTo().Frame(0);
            var el = this.Driver.GetElement(this.elelemtInIFrame);

            return(TakeScreenShot.TakeScreenShotOfElement(x, y, el, folder, name));
        }
Exemple #3
0
        public string TakeScreenShotsOfTextInIFrame(string folder, string name)
        {
            Logger.Info(CultureInfo.CurrentCulture, "Take Screen Shots");
            var iFrame = this.Driver.GetElement(this.iframe);
            int x      = iFrame.Location.X;
            int y      = iFrame.Location.Y;

            this.Driver.SwitchTo().Frame(0);
            var el = this.Driver.GetElement(this.elelemtInIFrame);

#if net47
            return(TakeScreenShot.TakeScreenShotOfElement(x, y, el, folder, name));
#endif
#if netcoreapp2_2
            return("to_be_implemented_in_netcore");
#endif
        }