demo-python icon indicating copy to clipboard operation
demo-python copied to clipboard

Add caps to desktop_web_driver setup

Open alexh-sauce opened this issue 3 years ago • 6 comments

caps was being configured but not passed to the webdriver for desktop tests.

alexh-sauce avatar Mar 21 '23 15:03 alexh-sauce

Approved! @alexh-sauce This was an oversight and you are correct to use caps in this PR.

joshmgrant avatar Mar 21 '23 15:03 joshmgrant

@joshmgrant thanks, can you merge? I don't have permission.

alexh-sauce avatar Mar 21 '23 16:03 alexh-sauce

I do not have merge permissions (sadly). I'd ask @titusfortner or Stuart Minchington

joshmgrant avatar Mar 21 '23 18:03 joshmgrant

Desired capabilities is deprecated. It should be options. what are you trying to do?

titusfortner avatar Mar 21 '23 19:03 titusfortner

Right now the desktop_web_driver() function is broken because the caps dict is set, but never referenced. I'd like the test to use the caps the same way as mobile_web_driver(). However we get there is fine with me.

alexh-sauce avatar Mar 21 '23 21:03 alexh-sauce

I thought this was the case. I approved this PR since I thought (and could be very wrong about!) the Python bindings automatically handle desired_capabilities and turn them into an options object but I may be incorrect about this. Whatever y'all need to do here is fine.

joshmgrant avatar Mar 21 '23 21:03 joshmgrant