Comments (8)
Привет
в наших проектах конфигурация для ie11 такая:
ie11: {
compositeImage: true,
windowSize: '1280x1024',
desiredCapabilities: {
browserName: 'internet explorer',
version: '11',
'ie.enableFullPageScreenshot': false
},
}
для эмуляции афйона используем такие капабилити:
desiredCapabilities: {
browserName: 'chrome',
version: '65.0',
chromeOptions: {
mobileEmulation: {
deviceMetrics: {
width: 320,
height: 568,
pixelRatio: 2.0
},
userAgent: [
'Mozilla/5.0',
'(iPhone; CPU iPhone OS 10_1_1 like Mac OS X)',
'AppleWebKit/602.2.14',
'(KHTML, like Gecko)',
'Version/10.0',
'Mobile/14B100',
'Safari/602.1'
].join(' ')
}
}
},
работоспособность ie11 напрямую зависит от настройки самого ie11 и iedriver-а, используемого для запуска тестов. Попробуй настроить локальный грид через https://www.npmjs.com/package/selenium-standalone
from testplane.
Большое спасибо за оперативную обратную связь! Обязательно попробую описанное.
from testplane.
это можно сделать в конфиге в prepareBrowser
from testplane.
Через контекст: https://webdriver.io/docs/customcommands.html
from testplane.
@sipayRT Пока тикет не закрыт - воспользуюсь случаем и задам ещё один вопрос - как можно подключить свои кастомные команды через this.browser. Возможность описана в документации, но к сожалению нет примеров, как это сделать?
from testplane.
@sipayRT Судя по описанию, в метод addCommand следует отправлять коллбэк. Подскажите, каким образом из этого коллбэка можно получить доступ к методам webdriverIO? Как-то через входные параметры? Просто из того, что нам удалось понять, никакие параметры на вход такого добавленного метода не поступают. Каким образом тогда можно взаимодействовать со страницей?
from testplane.
Огромное спасибо, за столь быструю обратную связь! Ответы очень помогли. Если возможно не закрывать этот тикет, то было бы очень здорово, а я бы тут задавал вопросы, возникающие в процессе использования инструмента.
from testplane.
Лучше под новые проблемы заводить отдельные issues.
from testplane.
Related Issues (20)
- Не работает ховер, если страницу нужно просколлить HOT 8
- Перехватить запросы на внешние ресурсы? HOT 2
- Как сохранить отчет от Гермионы UI версию? HOT 2
- Подключение @wdio/devtools-service HOT 4
- Impossible to use `hermione` with yarn pnp mode HOT 7
- Некорректный тип browser.executionContext.hermioneCtx HOT 2
- Option resetCursor moves the cursor to the center of the screen HOT 2
- Methods of the object stored in hermione.ctx are not passed to the test HOT 9
- Некорректный тип функции `it(` HOT 4
- v9.0.0: Breaking changes
- Use Chrome's new Headless mode HOT 3
- Отсутствуют типы для метода moveCursorTo HOT 1
- Тесты на типы HOT 2
- Perform preliminary research and develop a solution for automatic API reference generation or typings
- moveCursorTo не идентичен moveTo в hermione 7 (move target out of bounds) HOT 5
- hermione.ctx нельзя типизировать HOT 4
- Not clear how to create wrapper and fail test with browser.mock HOT 2
- Add a handy way to screenshot the viewport
- В тесте недоступно поле browserId HOT 5
- Пропала типизация describe/it и т.п. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testplane.