UFT does not recognize webfile object
Application:
Recorded step:
Browser("DocumentIndex_2").Page("DocumentIndex").WebFile("files").Set "kk"
Object Repo:
Run time error:
Error Details Run Error - Step Cannot identify the object "files"
(of class WebFile). Verify that this object's properties match an
object currently displayed in your application. Description Cannot
identify the object "files" (of class WebFile). Verify that this
object's properties match an object currently displayed in your
application.
Object's physical description: miccommentproperty = Mercury Class =
WebFile Html Tag = INPUT
_xpath = //DIV/DIV/DIV/DIV/SPAN[normalize-space()="Select files"]/INPUT1 |Visible = -1 Type = file Name = files Html Id =
DHTML Class =
In Object Repository, I was able to highlight the object. I am not sure why UFT would not click the object during run time. How can I instruct UFT to click the object?
hp-uft
|
show 1 more comment
Application:
Recorded step:
Browser("DocumentIndex_2").Page("DocumentIndex").WebFile("files").Set "kk"
Object Repo:
Run time error:
Error Details Run Error - Step Cannot identify the object "files"
(of class WebFile). Verify that this object's properties match an
object currently displayed in your application. Description Cannot
identify the object "files" (of class WebFile). Verify that this
object's properties match an object currently displayed in your
application.
Object's physical description: miccommentproperty = Mercury Class =
WebFile Html Tag = INPUT
_xpath = //DIV/DIV/DIV/DIV/SPAN[normalize-space()="Select files"]/INPUT1 |Visible = -1 Type = file Name = files Html Id =
DHTML Class =
In Object Repository, I was able to highlight the object. I am not sure why UFT would not click the object during run time. How can I instruct UFT to click the object?
hp-uft
1
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
1
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25
|
show 1 more comment
Application:
Recorded step:
Browser("DocumentIndex_2").Page("DocumentIndex").WebFile("files").Set "kk"
Object Repo:
Run time error:
Error Details Run Error - Step Cannot identify the object "files"
(of class WebFile). Verify that this object's properties match an
object currently displayed in your application. Description Cannot
identify the object "files" (of class WebFile). Verify that this
object's properties match an object currently displayed in your
application.
Object's physical description: miccommentproperty = Mercury Class =
WebFile Html Tag = INPUT
_xpath = //DIV/DIV/DIV/DIV/SPAN[normalize-space()="Select files"]/INPUT1 |Visible = -1 Type = file Name = files Html Id =
DHTML Class =
In Object Repository, I was able to highlight the object. I am not sure why UFT would not click the object during run time. How can I instruct UFT to click the object?
hp-uft
Application:
Recorded step:
Browser("DocumentIndex_2").Page("DocumentIndex").WebFile("files").Set "kk"
Object Repo:
Run time error:
Error Details Run Error - Step Cannot identify the object "files"
(of class WebFile). Verify that this object's properties match an
object currently displayed in your application. Description Cannot
identify the object "files" (of class WebFile). Verify that this
object's properties match an object currently displayed in your
application.
Object's physical description: miccommentproperty = Mercury Class =
WebFile Html Tag = INPUT
_xpath = //DIV/DIV/DIV/DIV/SPAN[normalize-space()="Select files"]/INPUT1 |Visible = -1 Type = file Name = files Html Id =
DHTML Class =
In Object Repository, I was able to highlight the object. I am not sure why UFT would not click the object during run time. How can I instruct UFT to click the object?
hp-uft
hp-uft
asked Nov 12 at 15:44
bugfinder
9811
9811
1
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
1
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25
|
show 1 more comment
1
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
1
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25
1
1
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
1
1
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25
|
show 1 more comment
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265535%2fuft-does-not-recognize-webfile-object%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265535%2fuft-does-not-recognize-webfile-object%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/… The code looks okay. According to the official doc it is not supported in Chrome and PhantomJS. What browser do you use?
– Bela Tamas Jozsa
Nov 12 at 16:04
Chrome 70. It clicks other objects in chrome. I am having problem with this one.
– bugfinder
Nov 12 at 16:36
1
@BelaTamasJozsa actually I think it is supported on Chrome, just not when Chrome is in emulation mode, quote: This object is not supported on browsers running on a Mobile device connected to Mobile Center or Chrome emulator browsers, or PhantomJS
– Motti
Nov 12 at 20:37
Right only Chrome Emulator Browsers. if we wanna be picky, theoretically UFT does not support version 70 yet - although practically there are no huge differences, so let's just ignore... still for the sake of completeness can you please try it in iexplore / firefox?
– Bela Tamas Jozsa
Nov 12 at 21:38
I just checked and it worked for me on Chrome70, from the error it looks like UFT couldn't recognise the file object. Try disabling automatic XPath identifiers (Tools->Options->GUI Testing->Web->Advanced-> Uncheck "Lean and run using automatic XPath identifiers"
– Motti
Nov 13 at 9:25