webship-js 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,32 +8,14 @@ jobs:
|
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
|
|
10
10
|
env:
|
|
11
|
-
TEST_BASE_URL: http://localhost:
|
|
11
|
+
TEST_BASE_URL: http://localhost:808
|
|
12
|
+
SELENIUM_HOST: http://selenium:4444/wd/hub
|
|
12
13
|
|
|
13
14
|
steps:
|
|
14
15
|
- name: Install Chrome
|
|
15
16
|
run: |
|
|
16
|
-
sudo apt install libu2f-udev
|
|
17
|
-
sudo apt-get install libappindicator1 fonts-liberation libgbm1 libgtk-3-0 xdg-utils
|
|
18
|
-
export CHROME_BIN=/usr/bin/google-chrome
|
|
19
17
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
20
|
-
sudo apt-get clean
|
|
21
|
-
sudo apt-get update
|
|
22
|
-
sudo apt-get install dpkg
|
|
23
18
|
sudo dpkg -i google-chrome-stable_current_amd64.deb
|
|
24
|
-
rm google-chrome-stable_current_amd64.deb
|
|
25
|
-
google-chrome --version
|
|
26
|
-
|
|
27
|
-
- name: Install/Update Chrome Driver
|
|
28
|
-
run: |
|
|
29
|
-
CHROME_DRIVER_VERSION=$(wget -qO- chromedriver.storage.googleapis.com/LATEST_RELEASE);
|
|
30
|
-
echo $CHROME_DRIVER_VERSION;
|
|
31
|
-
wget http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
|
|
32
|
-
unzip chromedriver_linux64.zip
|
|
33
|
-
chmod +x chromedriver
|
|
34
|
-
mkdir -p $HOME/.composer/vendor/bin
|
|
35
|
-
mv -f chromedriver $HOME/.composer/vendor/bin/
|
|
36
|
-
rm chromedriver_linux64.zip
|
|
37
19
|
|
|
38
20
|
- uses: actions/checkout@v3
|
|
39
21
|
- name: Use Node.js
|
|
@@ -44,7 +26,7 @@ jobs:
|
|
|
44
26
|
- name: Run Selenium Standalone server
|
|
45
27
|
run: |
|
|
46
28
|
wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.4.0/selenium-server-4.4.0.jar
|
|
47
|
-
java -jar selenium-server-4.4.0.jar
|
|
29
|
+
java -jar selenium-server-4.4.0.jar standalone --port 4444
|
|
48
30
|
|
|
49
31
|
- name: Install
|
|
50
32
|
run: yarn install
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ Feature: An example to select option from drop down list
|
|
|
5
5
|
|
|
6
6
|
Scenario: Check of selecting option from drop down list
|
|
7
7
|
Given I am on "/test--when--i-select-option-from-dropdownlist.html"
|
|
8
|
-
When I select "saab" from "
|
|
8
|
+
When I select "saab" from "cars"
|
|
9
9
|
When I press "Check select"
|
|
10
10
|
Then I should see "Option ( Saab ) has been selected successfully"
|
|
11
11
|
|
|
@@ -194,7 +194,10 @@ When(/^(I|we)* fill in the following:$/, function (pronoundCase, table) {
|
|
|
194
194
|
*/
|
|
195
195
|
When(/^(I|we)* select "([^"]*)?" from "([^"]*)?"$/, function (pronoundCase, option, dropdownlist) {
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
browser.waitForElementVisible('css selector', 'select[name="' + dropdownlist + '"]')
|
|
198
|
+
.click('select[name="' + dropdownlist + '"]')
|
|
199
|
+
.click('select[name="' + dropdownlist + '"]' + ' option[value=' + option + ']')
|
|
200
|
+
.click('select[name="' + dropdownlist + '"]');
|
|
198
201
|
});
|
|
199
202
|
|
|
200
203
|
/**
|