I am not able to access the file open dialog in Selenium IDE 2.9.1 (Firefox 48.0, Win 10). File > Open results in this error message:
There was an unexpected error. Msg: NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
Url: chrome://selenium-ide/content/file-utils.js, line: 32
FileUtils.getFile#chrome://selenium-ide/content/file-utils.js:32:5
showFilePicker#chrome://selenium-ide/content/tools.js:102:31
Application.prototype.loadTestCaseWithNewSuite#chrome://selenium-ide/content/application.js:259:20
Editor.prototype.loadRecentTestCase#chrome://selenium-ide/content/editor.js:489:5
Editor.controller.doCommand#chrome://selenium-ide/content/editor.js:366:9
goDoCommand#chrome://global/content/globalOverlay.js:100:7
oncommand#chrome://selenium-ide/content/selenium-ide.xul:1:1
File > Open Test Suite results in a shorter error:
error loading test suite: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://selenium-ide/content/file-utils.js :: FileUtils.getFile :: line 32" data: no]
Does anyone have a clue what's wrong here?
In a new Firefox Tab type in about:config, and once in there search for: extensions.selenium-ide.testCaseDirectory and extensions.selenium-ide.testSuiteDirectory Check the file path there and make sure it is a valid one. They control the default location you start at when opening files, could be an issue with that.
Related
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 ***
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?
Below is the sample code which is suppoe to fail as the file path is invalid.
Scenario: test input
* driver "https://fineuploader.com/demos.html"
* print "performing file upload"
* input("[name='qqfile']","in valid path")
* print "done file upload"
I see the error on the console
12:03:27.773 [chromedriver_1584979407695] WARN com.intuit.karate.shell.Command - exit code was non-zero: 1 - [/Users/vxt82/Apps/chromedriver, --port=9515, --user-data-dir=/Users/vxt82/repo/bitbucket/xtaf-unified-framwork/target/chromedriver_1584979407695]
12:03:31.648 [ForkJoinPool-1-worker-3] INFO com.intuit.karate - [print] performing file upload
12:03:31.711 [ForkJoinPool-1-worker-3] WARN com.intuit.karate - http response code: 404, response: {"value":{"stacktrace":"0 chromedriver 0x0000000108d72e99 chromedriver + 3747481\n1 chromedriver 0x0000000108d074d3 chromedriver + 3306707\n2 chromedriver 0x0000000108a96fef chromedriver + 749551\n3 chromedriver 0x0000000108a03128 chromedriver + 143656\n4 chromedriver .... 0x00007fff767a040d thread_start + 13\n","error":"no such element","message":"no such element: Element_id length is invalid\n (Session info: chrome=78.0.3904.50)"}}, request: [method: POST, responseTime: 4.207512, body: {"text":"in valid path"}]
12:03:31.718 [ForkJoinPool-1-worker-3] INFO com.intuit.karate - [print] done file upload
I was expecting test to fail but surprisingly it's passing. I looked into documentation but did not find anything specific to this scenarios.
Is this is expected behaviour, or I am doing some mistake in understanding?
Karate's file upload (input()) works similar to Selenium WebDrivers sendkeys(). It just does setting the text without validating is it file type and a path, Which I think is ok and as per design. May be as suggested Peter assertion can help at some extent to confirm file upload works.
Karate Driver Error: org.apache.http.conn.HttpHostConnectException: Connect to localhost:9515 ... failed: Connection refused:
During karate script execution on Web testing , the error "poll attempt #1 to #20 for port to be ready - localhost:9515" is displayed.
Note: I am using karate-core-0.9.3.jar and trying to run the example 1 (demo-01.feature) from page :https://intuit.github.io/karate/karate-core/
Background:
* configure driver = { type: 'chrome', executable: 'chrome.bat'}
Note: Batch file (chrome.bat) is created and placed in the same location as that of feature file.
Batch file content as below.
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" %*
the same location as that of feature file.
That may not be what is expected. Either make sure that location is in the System PATH or use the full absolute path in the executable. So also try this:
* configure driver = { type: 'chrome', executable: 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe' }
Actually since this is the default, even this should work for you !
* configure driver = { type: 'chrome' }
Read the docs: https://github.com/intuit/karate/tree/develop/karate-core#configure-driver
Finally if you are still stuck, please try the ZIP release: https://github.com/intuit/karate/wiki/ZIP-Release
How to resolve this below issues while capture screen in IE?
I have registered the snapsie.dll in C:\Windows
Error Detail:
"Error: Snapsie failed: Is it installed? Does it have permission to run as an add-on? See http://snapsie.sourceforge.net/"