Bird
0
0

Which desired capabilities dictionary is correct?

hard📝 framework Q15 of 15
Selenium Python - Selenium Grid
You want to run a Selenium test on BrowserStack for a mobile device with these requirements: Android 13, Chrome browser, and device name 'Samsung Galaxy S22'. Which desired capabilities dictionary is correct?
A{ 'platformName': 'Android', 'platformVersion': '12', 'browserName': 'Chrome', 'deviceName': 'Samsung Galaxy S22' }
B{ 'platformName': 'Windows', 'platformVersion': '13', 'browserName': 'Chrome', 'deviceName': 'Samsung Galaxy S22' }
C{ 'platformName': 'Android', 'platformVersion': '13', 'browserName': 'Chrome', 'deviceName': 'Samsung Galaxy S22' }
D{ 'platformName': 'Android', 'browserName': 'Firefox', 'deviceName': 'Samsung Galaxy S22' }
Step-by-Step Solution
Solution:
  1. Step 1: Match platform and version

    Android 13 is required, so platformName must be 'Android' and platformVersion '13'.
  2. Step 2: Check browser and device name

    Browser must be 'Chrome' and deviceName 'Samsung Galaxy S22' exactly.
  3. Step 3: Eliminate incorrect options

    The option with platformVersion '12' has wrong version; the one with 'Windows' has wrong platform; the one with 'Firefox' and no version has wrong browser and missing version.
  4. Final Answer:

    { 'platformName': 'Android', 'platformVersion': '13', 'browserName': 'Chrome', 'deviceName': 'Samsung Galaxy S22' } -> Option C
  5. Quick Check:

    Correct platform, version, browser, device = { 'platformName': 'Android', 'platformVersion': '13', 'browserName': 'Chrome', 'deviceName': 'Samsung Galaxy S22' } [OK]
Quick Trick: Match all capability keys exactly for device testing [OK]
Common Mistakes:
  • Using wrong platform or version
  • Choosing wrong browser name
  • Missing platformVersion key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes