Screenshot added for the element locator
我尝试了以下方法,但没有解决。
import numpy as np
weather = np.linspace(-5, 5, 3)
df_final = pd.DataFrame([], index=weather)
for ctr1 in weather:
X1 = round(ctr1,1)
for ctr2 in weather:
X2 = round(ctr2,1)
Y1 = regressor[0] * X1**3 + \
regressor[1] * X1**2 + \
regressor[2] * X1 + \
regressor[3]
Y2 = regressor[0] * X2**3 + \
regressor[1] * X2**2 + \
regressor[2] * X2 + \
regressor[3]
slope = (Y2-Y1)/(X2-X1)
df_final.loc[X1, X2] = np.NaN if X1 == X2 else slope
答案 0 :(得分:0)
有几种方法可以选择该选项:
1)
element(by.cssContainingText('select[formcontrolname="brandName"] > option', 'APPLE')).click();
2)
element(by.css('select[formcontrolname="brandName"] > option[ng-reflect-value="APPLE"]')).click();
3)
element(by.xpath('//select[@formcontrolname="brandName"]/option[text()="APPLE"]')).click();