I was wondering if anyone can help me with setting up my Webdriver, so I can emulate a mobile device experience. I have been seeing how to do it through Selenium but not through the Selenium nodes in KNIME. Any guidance would be appreciated. Thank you so much!
You can use Chrome/Chromium’s mobileEmuation property to specify details about the mobile device which you want to simulate. You will need to configure the capabilities structure in Start WebDriver or WebDriver Factory as follows (note to use the proper structure and types – sorry in advance, the capabilities editor is not very user friendly ):
The property names should be self-explanatory. You can typically google the specs for width,height, and pixelRatio if you search for like “iPhone mini screen size pixel ratio”. The userAgent depends on the browser and version which you’d like to simulate. Anyways, if you’ve been doing this with plain Selenium, this should be clear
I will include a ready-made example snippet for this in one of the next Selenium Nodes versions.
Thank you so much, Philipp! This was exactly what I was looking for. I know that there was mobileEmulation and all these capabilities, but I couldn’t figure out how to put them in the Capabilities editor. Thank you again for all the help!