سؤال

I'm new to Selenium testing, and I have question about browser agents.

I've written a script that I want to test with IE8 on XP, IE8 and IE9 on Windows 7. I know it is possible to define the version of the browser, but I don't know whether it is possible to define the OS version or not.

I'm asking this question because I'm using Selenium Grid on a CentOS box.

Thanks in advance.

هل كانت مفيدة؟

المحلول

You can use following values

enter image description here

Doc

نصائح أخرى

You can define the OS by setting the Platform capability, like so

capability.setPlatform(“LINUX”);

You can read more about it here - http://code.google.com/p/selenium/wiki/Grid2

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top