Given
Login as "pskza1-carrier@qa.qa-test" and set token of apiUsername "super-admin-skz"
2s 228ms
And
Create task with new status by JSON file "NEW_STATUS_SMALLS_IMPORT" as "super-admin-skz"
194ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 216ms
And
Transfer transport to carrier by JSON file "super-admin-skz" "true" confirmation
079ms
When
Accept or reject "accept" transferred transport
18s 048ms
And
Get inputs from database "ADVICE_SMALLS" "super-admin-skz"
003ms
And
Click button advice in transport table "SMALLS_IMPORT"
141ms
And
Set advice window in schedule
2s 744ms
And
Fill advice form
14s 704ms
And
Click advice save button and wait for advice form to disappear
30s 721ms
And
If user is login then logout
127ms
And
Login as "swisskrono-admin"
2s 396ms
And
Show all transport types
1s 062ms
Then
Check if transport has "testowy-różoffy-statusik"
032ms
And
Go to "SETTINGS_TAB"
346ms
When
Disable status "testowy-różoffy-statusik" for transport "SMALLS_IMPORT"
15s 030ms
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div/a[text()='Drobnica import']"}
(Session info: headless chrome=89.0.4389.114)
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'ns3112421', ip: '94.23.29.183', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-136-generic', java.version: '1.8.0_201'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}), userDataDir=/home/teamcity/build-agent-2/temp/buildTmp/.com.google.Chrome.9IPk1e}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=LINUX, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:9222}, acceptInsecureCerts=false, browserVersion=89.0.4389.114, browserName=chrome, javascriptEnabled=true, platformName=LINUX, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: a29274008b6467118e33d32e9ee1aa75
*** Element info: {Using=xpath, value=//div/a[text()='Drobnica import']}
at sun.reflect.GeneratedConstructorAccessor206.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:356)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:458)
at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
at Pages.Settings.SettingsPage.goToTransportTypeSettings(SettingsPage.java:35)
at CucumberTests.StatusTests.ConfirmStatuses.disableStatusByName(ConfirmStatuses.java:161)
at ✽.Disable status "testowy-różoffy-statusik" for transport "SMALLS_IMPORT"(file:Features/Atom/Statuses/ConfirmStatuses.feature:323)
And
Delete created transport by API
000ms
Then
If user is login then logout
000ms
Given
Login as "pskza1-carrier@qa.qa-test" and set token of apiUsername "super-admin-skz"
000ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
000ms
And
Transfer transport to carrier by JSON file "super-admin-skz" "true" confirmation
000ms
When
Accept or reject "accept" transferred transport
000ms
And
Get inputs from database "ADVICE_SMALLS" "super-admin-skz"
000ms
And
Click button advice in transport table "SMALLS_IMPORT"
000ms
And
Set advice window in schedule
000ms
And
Fill advice form
000ms
And
Click advice save button and wait for advice form to disappear
000ms
And
If user is login then logout
000ms
And
Login as "swisskrono-admin"
000ms
And
Show all transport types
000ms
Then
Check if transport has disabled status "testowy-różoffy-statusik"
000ms