How to get deviceName value from Multicapabilities definition at run time
See original GitHub issueHi Team,
This might be repeated question for you guys but really I didn’t answer yet. Here is my multi-capabilities definition in protractor config file. I want to access the deviceName parameter value. How can I do it?
exports.config = {
directConnect:true,
multiCapabilities: [
{
browserName: 'chrome',
'chromeOptions': {
'mobileEmulation': {
'deviceName': 'iPad'
}
}
}
],
Tried under onPrepare but not giving multi-capabilities values
browser.getCapabilities().then(function(c) {
console.log(c.get('deviceName'));
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to get deviceName value from Multicapabilities definition ...
Fetching device name worked as advised by Gunderson but now I am running into different issue I am unable to access the variable...
Read more >Selenium WebDriver capabilities for running tests on ...
Capability, Values. userName. For running your Selenium and Appium tests on BrowserStack it, requires a username and an access key for authenticating the ......
Read more >Desired Capabilities in Selenium Testing With Examples
Desired Capabilities is a class used to declare a set of basic requirements such as combinations of browsers, operating systems, ...
Read more >Capabilities and Options in Protractor - Selenium Easy
In your Protractor conf.js file, we define capabilities object and add information on which browser against Protractor should run the tests.
Read more >SmartThings Developer Documentation
means that you execute a command, and assume it will turn on in due time, without any sort of follow up. 3.2. Important...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kat0072, please take a look at get-config-capabilities for requested example.
Hi, @kat0072 ! You can do it using browser.getProcessedConfig() function.