在Perfecto实验室中针对iPhone SE和Galaxy S8运行量子代码时,我们会得到
# If you are using to_field
class Relationships(models.Model):
id = models.BigAutoField(primary_key=True)
owner = models.ForeignKey(Owner, on_delete=models.CASCADE, related_name='relationship_owner',to_field='nickname')
target_owner = models.ForeignKey(Owner, on_delete=models.CASCADE, related_name='relationship_target_owner', to_field='nickname')
# usage
Relationships.objects.create(owner_id='nick', target_owner_id='john')
当尝试手动打开应用程序时,我们竭力做到这一点而没有任何问题。但是在运行脚本时,我们面临着这个问题。
ERROR: Underlying Driver is an QAFExtendedWebDriver. This step requires an AppiumDriver.
答案 0 :(得分:0)
您需要使用perfectoDriver而不是perfectoRemoteDriver,这将确保基础驱动程序正在指定驱动程序。