I'm getting errors while running below mentioned RF scripts. How can I resolve this issue, I don't see any problem with the chrome/web driver version. Please let me know
ERROR: bluetooth_adapter_winrt.cc:1072 Getting Default Adapter failed.
Chrome version: 91.0.4472.124
Chrome We driver: 91
IDE: Pycharm
Machine: VM
Library SeleniumLibrary
*** Test Cases ***
User must sign in to check out
[Documentation] This is some basic info about the test
[Tags] Smoke
open browser http://www.amazon.com chrome
Wait Until Page Contains Amazon
Input Text id=twotabsearchtextbox Ferrari 485
Click Button xpath =//input[#id='nav-search-submit-button']
Wait Until Page Contains results for "Ferrari 485
CLICK LINK xpath=//*[#id="n/3073871"]/span/a/span
Click Link xpath=//input[#id='add-to-cart-button']
Page Should Contain Element ap_signala_pagelet_title
Element Text Should Be ap_signala_pagelet_title sign In
close browser
*** Keywords ***
Related
I was testing my electron app with mocha and got this error several times (and I'm still getting it!). Every time I run the program it returns with the error
> Executing task: npm run test <
> forte#1.0.0 test PATH TO PROJECT
> mocha ./tests/test.js
0 passing (3ms)
Test failed Failed to create session.
unknown error: Chrome failed to start: was killed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location \node_modules\spectron\lib\launcher.bat is no longer running, so ChromeDriver is
assuming that Chrome has crashed.)
Just in case this is important, the part which says (The process started from chrome location \node_modules... actually had the whole path, not just that.
In my test.js file I have the code from the spectron home page, which you can view here. What is wrong with the test files?
I am building automation for the browser (from chromium kernel)
while locating element from some internal page such as: chrome://settings/
I can get xpath of "Autofill" by //[#id="autofill"]
But when I run the script by Robot framework, it said "Element with locator '//[#id="autofill"]' not found."
Here is the simple script:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
*** Test Cases ***
Open URL in Google Chrome
Open browser chrome://settings/ chrome
Click Element //*[#id="autofill"]
*** Keywords ***
https://imgur.com/a/FAJoYji
Thank you so much!
here is my first and simple code in robot framework , I am just trying to input text in google searchbox and then close the browser but it keeps on failing.
*** Settings ***
Documentation Suite description
Library Selenium2Library
*** Variables ***
${Browser} chrome
${URL} https://www.google.com/
${text} ab
*** Test Cases ***
TC 001 Browser Open and Close
Open Browser ${URL} ${Browser}
Set Browser Implicit Wait 5
Input Text name=q ab
Close Browser
error message -
WebDriverException: Message: unknown error: call function result missing 'value'
(Session info: chrome=80.0.3987.132)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.17763 x86_64)
strong text
Strange thing if i run only below it works fine so i am suspecting it has to do with step where i am trying to insert text in google search box
*** Settings ***
Documentation Suite description
Library Selenium2Library
*** Variables ***
${Browser} chrome
${URL} https://www.google.com/
${text} ab
*** Test Cases ***
TC 001 Browser Open and Close
Open Browser ${URL} ${Browser}
Set Browser Implicit Wait 5
Close Browser
You don't have the correct chromedriver version for your version of chrome. The error shows you're using chrome 80, but chromedriver 2.33. You need to be using chromedriver version 80.
I want to use Chrome for automation test with Robot Framework. Here are my settings:
*User variables:*
name: webdriver.chrome.driver
value: C:\chromedriver_win32\chromedriver.exe
name: PATH
values: ......;C:\chromedriver_win32\chromedriver.exe
My code:
*** Settings ***
Library BuiltIn
Library Selenium2Library
Library SikuliLibrary
Library OperatingSystem
*** Variables ***
${HOST} = VM
${URL} = http://VM.com
${BROWSER} = Chrome
*** Test Cases ***
Begin Web Test
Open Browser ${URL} ${BROWSER}
maximize browser window
After execution of command: pybot test.robot:
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No brows
er is open
Test Case FException
AttributeError: "'Service' object has no attribute 'process'" in <bound method
Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x000000
0003670278>> ignored
Test Case | FAIL |
Setup failed:
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Plea
se see https://sites.google.com/a/chromium.org/chromedriver/home
------------------------------------------------------------------------------
What is wrong here?
Thank you
"chromedriver' executable needs to be in PATH" means that the location of chromedriver needs to be in the path. In your case, path needs to be "...;C:\chromedriver_win32". PATH contains folders, not executables.
Download Chromedriver.exe from its official website, extract the .exe file and copy this .exe file in scripts folder of Python installation, e.g. C:\Python36\Scripts
After this, add this scripts path in Environment variable, as below:
and now execute your test case.
I get the following error from chrome driver when running my selenium tests with chrome driver. The test works fine with firefox.
unknown error: failed to parse value of getElementRegion
Here's the code, it fails when trying to click the submit button. I'm using selenium-standalone to run my server, specifying chromedriver with selenium-standalone start --drivers.chrome.version=2.8 and webdriverIO
client
.url(options.url)
.setValue(usernameSelector, username)
.setValue(passwordSelector, password)
.click(submitBtnSelector)
I solved the same problem by deleting the line SELENIUM_PROMISE_MANAGER: false in my conf.js file on my protractor configuration.