ملف تعريف Firefox المخصص في السيلينيوم يتسبب في أن تكون الإضافات غير متوافقة

StackOverflow https://stackoverflow.com/questions/3439366

سؤال

الآن هذا صعب. أحاول إجراء اختبار WAP باستخدام Firefox و Selenium. لذلك قمت بإنشاء ملف تعريف مخصص وقمت بتثبيت مكون إضافي يسمى Modify Headers. عندما أقوم بتشغيل ملف التعريف يدويًا ، يعمل الملحق بشكل جيد. ولكن عندما أستخدمه مع السيلينيوم RC ، فإن Firefox يعطل البرنامج المساعد ، قائلاً إنه غير متوافق مع Firefox 3.6.6. هذا أمر مثير للسخرية. إذا فتحت نفس ملف تعريف Firefox يدويًا ، فإن البرنامج المساعد يعمل بشكل جيد. أيضًا ، عندما أقوم بتحديث البرنامج المساعد (في ملف التعريف الذي تم إطلاقه بواسطة FF) ، أقوم بتثبيت تصحيح توافق وأعمل بشكل جيد بعد إعادة تشغيل FF. ولكن ، عندما أغلق Firefox وأطلق نفس الملف الشخصي من السيلينيوم ، فإنه يعطي نفس المشكلة مرة أخرى. الرجاء المساعدة ، تستند الكثير من حالات الاختبار الخاصة بي على WAP. يمكنك أيضًا اقتراح بدائل لهذا البرنامج المساعد.

شكرا مع تحياتي
vamyip

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

المحلول

You can try disabling extension compatibility checking in Firefox (using your Selenium profile):

http://kb.mozillazine.org/Extensions.checkCompatibility

  1. Type about:config in the address bar and hit enter
  2. Click "I'll be careful".
  3. Right-click anywhere on the list.
  4. Select New > Boolean
  5. Enter "extensions.checkCompatibility.3.6" as the preference name
  6. Select false

نصائح أخرى

I've had a few situations where I thought I was loading FireFox 3.6.x, but it was actually opening a newer version of Firefox (v16) installed on the machine. Because the profiles are stored in different places, it wasn't actually opening the profile I thought it was.

I thought I'd mention it just in case it explains varmyip's issue for other folks experiencing the same issue.

visit this blog i am sure this will help you out. http://automationtricks.blogspot.com/2010/05/how-to-run-test-cases-in-specified.html

Regards,

Niraj

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