Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Поддержка typescript #254

Closed
vrozaev opened this issue May 30, 2018 · 3 comments
Closed

Поддержка typescript #254

vrozaev opened this issue May 30, 2018 · 3 comments

Comments

@vrozaev
Copy link

vrozaev commented May 30, 2018

Сейчас у hermione нет тайпингов - использование с тайпскриптом немного затруднено.
Как w/a можно использовать тайпинги от webdriver.io, но это не очень удобно.
Хотелось бы чтобы тайпинги были из коробки.

@arikon
Copy link

arikon commented Sep 14, 2018

@vrozaev Можете прислать pull request?

@artra
Copy link

artra commented Oct 24, 2019

Мы пока что такие тайпинги у нас написали, они конечно неполные, но может кому-нибудь пригодится

import { Element, Browser } from 'webdriverio';

export type Browser = Browser & {
  assertView: (
    name: string,
    selector: string | string[],
    opts?: {
      // Selectors will be covered with black rect.
      ignoreElements?: string | string[];
      // Selectors will be hidden with display: none.
      hideElements?: string | string[];
      // Selectors will be hidden with opacity: 0.
      invisibleElements?: string | string[];
    }
  ) => Promise<void>;
  keys: (keys: string) => Browser;
};

export interface HermioneContext {
  browser: Browser;
  skip: (reason: string) => void;
}

@DudaGod
Copy link
Member

DudaGod commented Jun 16, 2020

тайпинги подъехали - hermione@3.5.2

@DudaGod DudaGod closed this as completed Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants