This repository was archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
How to get deviceName value from Multicapabilities definition at run time #4719
Comments
Hi, @kat0072 ! You can do it using browser.getProcessedConfig() function.
|
@IgorSasovets it worked. Can you please tell me that how I can access the value outside the function... |
IgorSasovets
added a commit
to IgorSasovets/get-config-capabilities
that referenced
this issue
Mar 2, 2018
get-config-capabilities ---------------------- This is simple example that explains how to get config capabilities variables inside test. Please take a look at angular/protractor#4719 for description of issue. Dependencies -------------- In this example I used [protractor-firefox-support](https://github.com/IgorSasovets/protractor-firefox-support) lib that provides custom implementations of basic Actions class function which doesn't work in Firefox (v.52 and higher). Take a look at angular/protractor#4687.
@kat0072, please take a look at get-config-capabilities for requested example. |
thanks, buddy got it. |
Above mentioned works fine if my config is in .JS but if I create config file in TS format. it doesn't work. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi 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?
Tried under onPrepare but not giving multi-capabilities values
The text was updated successfully, but these errors were encountered: