webrtc / KITE

KITE is a test engine designed to test WebRTC interoperability across browsers
Apache License 2.0
468 stars 126 forks source link

How can I achieve Mobile Emulation mode using Kite ? #124

Closed kavyasetty456 closed 4 years ago

kavyasetty456 commented 4 years ago

Hi,

Could you please suggest me how can I achieve Mobile Emulation mode using Kite? I already tried in multiple ways but it seems no use and there is no inbuilt method in Kite for using Mobile Emulation mode.

Please find the below screenshot for your reference

MobileEmulation

Thank You, Kavya Setty.

namvuCosmo commented 4 years ago

Hi,

We haven't implemented this because there hasn't been need for it.

However I just tried the example here : https://chromedriver.chromium.org/mobile-emulation

image

Is this the result you want?

image

kavyasetty456 commented 4 years ago

Hi,

Yes I want the result in the same way which you got. I used the same code which you have used but still browser is opening in normal way.

you are keeping the code in WebDriverFactory.java only?

Thank You for your quick response.

namvuCosmo commented 4 years ago

Those were the only 3 lines I added.

I'm not sure if it changes anything, but I tested it only with chrome canary (v. 84).

kavyasetty456 commented 4 years ago

Even I also used the same code in WebDriverFactory.java but still for me it is not changing into mobile emulation mode. And I am testing in Chrome Browser 81.0.4044.138 version.

namvuCosmo commented 4 years ago

I have the same result with chrome 81 image

Are you using only the 3 new lines I added?

kavyasetty456 commented 4 years ago

Now its working for me too. Yeah I am using the same code only.

I updated Kite and kept those 3 lines and its working for me

Thank You for your support!!

namvuCosmo commented 4 years ago

Np :)