Dmitriy Dudkevich
Dmitriy Dudkevich
Hello. Can you provide a minimal case to reproduce this behaviour?
Hello. Can you provide log from your console and your test which you run?
Hello. I will look at this problem.
Hello. Look at examples here - https://webdriver.io/docs/api/expect-webdriverio/. You should rewrite your code like this: ``` it('search', async function() { await this.browser.url('https://ya.ru/'); const elem = await this.browser.$('#text'); await expect(elem).toBeDisplayed() }); ```
Привет. В наших проектах мы используем assert из [chai](https://www.npmjs.com/package/chai) и дефолтные команды из API wdio. Чтобы определить имеет ли элемент аттрибут необходимо использовать команду - [getAttribute](https://webdriver.io/docs/api/element/getAttribute). А для проверки, что...
Hello. You are welcome. Did I understand correctly that before run tests you know entire url? For example you have one url - http://localhost/path?id=123 and another - http://localhost/path?id=456. You set...
Okay, why you can't do something like this: ```js BookStore.createBook().then((book) => { const url = `http://some.url/books/${book.id}`; gemini.suite(book.name, (suite) => { suite .setUrl(url) .setCaptureElements('book') .capture('plain'); }); }) ```
Hello. Thank you. I will test it today.
I tested these changes. Works seamlessly on a test project, but fails on our big project with thousands tests. I will look at the problem that has arisen.
Привет. Это всего лишь ворнинги, которые сообщают, что в зависимостях устанавливаемого тобой пакета есть уязвимости. Большинство из них не критичные и твой код из-за них никак не сломается. Чтобы ворнинги...