Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geting error after i run the script in my local machine... #7

Open
tapastest opened this issue Apr 21, 2018 · 2 comments
Open

Geting error after i run the script in my local machine... #7

tapastest opened this issue Apr 21, 2018 · 2 comments

Comments

@tapastest
Copy link

`Feature: Acting in trivago home page. Demonstrating some assertion and scooping methods # features/test_scenarios/home_page.feature:1
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario Outline: User navigates to home page and observes page content -- @1.1 # features/test_scenarios/home_page.feature:8
Given I am redirected on home page # None
When On page I want to see searching_bar # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario Outline: User navigates to home page and observes page content -- @1.2 # features/test_scenarios/home_page.feature:9
Given I am redirected on home page # None
When On page I want to see searching_button # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario: User navigates to home page and observes Trivago's slogan # features/test_scenarios/home_page.feature:11
Given I am redirected on home page # None
When In home page I want to see slogan # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario: User navigates to home page, clicks on search button and is redirected to searching page # features/test_scenarios/home_page.featur
e:16
Given I am redirected on home page # None
When I click on searching_button in search bar # None
Then In searching page I want to see searching_filter # None

Scenario: User navigates to home page and wants to see a Trivago slogan # features/test_scenarios/home_page.feature:22
Given I am redirected on home page # None
When I want to see Find your ideal hotel|nfor the best price in slogan # None

Feature: Acting in Searching page as required # features/test_scenarios/searching_page.feature:1
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.1 # features/test_scenarios/searching_
page.feature:13
Given I am redirected on home page # None
When I insert Cork International Hotel to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Cork International Hotel is in searching_bar # None
And I click on option_wife # None
And I check if my option_wife is selected # None
Then I expect True in searching_area for my searching of Cork International Hotel and option_wife # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.2 # features/test_scenarios/searching_
page.feature:14
Given I am redirected on home page # None
When I insert Jurys Inn Cork to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Jurys Inn Cork is in searching_bar # None
And I click on option_wife # None
And I check if my option_wife is selected # None
Then I expect False in searching_area for my searching of Jurys Inn Cork and option_wife # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home

Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.3 # features/test_scenarios/searching_
page.feature:15
Given I am redirected on home page # None
When I insert The River Lee to search bar # None
Then I click on searching_button in search bar # None
And I ensure that The River Lee is in searching_bar # None
And I click on option_spa # None
And I check if my option_spa is selected # None
Then I expect True in searching_area for my searching of The River Lee and option_spa # None

Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.4 # features/test_scenarios/searching_
page.feature:16
Given I am redirected on home page # None
When I insert Jurys Inn Cork to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Jurys Inn Cork is in searching_bar # None
And I click on option_spa # None
And I check if my option_spa is selected # None
Then I expect False in searching_area for my searching of Jurys Inn Cork and option_spa # None

Failing scenarios:
features/test_scenarios/home_page.feature:8 User navigates to home page and observes page content -- @1.1
features/test_scenarios/home_page.feature:9 User navigates to home page and observes page content -- @1.2
features/test_scenarios/home_page.feature:11 User navigates to home page and observes Trivago's slogan
features/test_scenarios/home_page.feature:16 User navigates to home page, clicks on search button and is redirected to searching page
features/test_scenarios/home_page.feature:22 User navigates to home page and wants to see a Trivago slogan
features/test_scenarios/searching_page.feature:13 User inserts searching text to the searching engine and expects to be succeed -- @1.1
features/test_scenarios/searching_page.feature:14 User inserts searching text to the searching engine and expects to be succeed -- @1.2
features/test_scenarios/searching_page.feature:15 User inserts searching text to the searching engine and expects to be succeed -- @1.3
features/test_scenarios/searching_page.feature:16 User inserts searching text to the searching engine and expects to be succeed -- @1.4

0 features passed, 2 failed, 0 skipped
0 scenarios passed, 9 failed, 0 skipped
0 steps passed, 0 failed, 0 skipped, 0 undefined, 39 untested
Took 0m0.000s
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591DD0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591EB0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591F50>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x025F1030>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FEB0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591110>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x025911F0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FA70>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FF50>> ignored
`

Help me to identify where i am doing wroung..

@crki76
Copy link
Owner

crki76 commented Apr 22, 2018

Hi tapatest,
Please, specify your path to chromedriver binary file in your location. I have a different like you, I expect.
The best way is to take the latest binary from Selenium site and also upgrade your local chrome browser.
To specidying the path should sort your problem out. I am doing it in def before_scenario (environment.py).
Let me know if you have any other issues. Thanks.

@MervinDiazLugo
Copy link

or put the chrome driver into a python installation and add this path in environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants