public static void SetTheme(string path) { ThemesPage tp = new ThemesPage(); tp.LinkSetThemes.Click(); tp.ButtonMyPhoto.Click(); tp.ChangeWindow(); tp.ButtonUploadPhoto.Click(); tp.ButtonSelectedPhotoFromComputer.Click(); Attachment.AttachFile(path); }