我正尝试在下面的示例中保存135224,以在另一个网站上使用。
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<CustomerAddress>()
.HasKey(c => new { c.CustomerId, c.AddressId});
modelBuilder.Entity<Customer>()
.HasMany(c => c.CustomerAddresses)
.WithRequired()
.HasForeignKey(c => c.CustomerId);
modelBuilder.Entity<Address>()
.HasMany(c => c.CustomerAddresses)
.WithRequired()
.HasForeignKey(c => c.AddressId);
}
当前,我遇到了一个错误:
失败:缺少参数列表后的
这是我在Selenium中尝试过的命令:
store text | xpath=//b[contains(., 'Authorization Request - Confirmation Number : 135224')] | string
答案 0 :(得分:0)
我认为您将“ )
”末尾放在错误的位置,请尝试以下操作:
run script | javascript(myString(); function myString() {var auth = 'Authorization Request - Confirmation Number: ()' var confNum = auth.slice(47,52)}) | auth Num