Selenium for VBA - element not found error
I have been using a code since long time , but recently there is a new banner up which is hiding the element that I am trying to click.
Attaching the snapshot of error. The only help I need is I need to click the hidden element( if the browser window is maximized the element is visible).
.
Please help me.
vba selenium web-scraping selenium-chromedriver
add a comment |
I have been using a code since long time , but recently there is a new banner up which is hiding the element that I am trying to click.
Attaching the snapshot of error. The only help I need is I need to click the hidden element( if the browser window is maximized the element is visible).
.
Please help me.
vba selenium web-scraping selenium-chromedriver
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13
add a comment |
I have been using a code since long time , but recently there is a new banner up which is hiding the element that I am trying to click.
Attaching the snapshot of error. The only help I need is I need to click the hidden element( if the browser window is maximized the element is visible).
.
Please help me.
vba selenium web-scraping selenium-chromedriver
I have been using a code since long time , but recently there is a new banner up which is hiding the element that I am trying to click.
Attaching the snapshot of error. The only help I need is I need to click the hidden element( if the browser window is maximized the element is visible).
.
Please help me.
vba selenium web-scraping selenium-chromedriver
vba selenium web-scraping selenium-chromedriver
edited Nov 20 '18 at 7:33
QHarr
30.9k81941
30.9k81941
asked Nov 13 '18 at 6:30
Bhaskar RavuriBhaskar Ravuri
101
101
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13
add a comment |
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13
add a comment |
2 Answers
2
active
oldest
votes
If what you have said is true then you can use the following to maximize the window before clicking:
driver.Window.Maximize
Other options include:
1) Removing the banner
2) Scrolling the element into view
Can't write anything decent for those last two as your code is an image and I don't have a full URL to test with. You also haven't included the relevant HTML.
add a comment |
The "div.container-fluid" element is blocking the button you are trying to click.
You could try some of the following (as being shown here Element MyElement is not clickable at point (x, y)... Other element would receive the click):
- prolong the wait before the click
- use javascript executor
add a comment |
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%2f53275067%2fselenium-for-vba-element-not-found-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If what you have said is true then you can use the following to maximize the window before clicking:
driver.Window.Maximize
Other options include:
1) Removing the banner
2) Scrolling the element into view
Can't write anything decent for those last two as your code is an image and I don't have a full URL to test with. You also haven't included the relevant HTML.
add a comment |
If what you have said is true then you can use the following to maximize the window before clicking:
driver.Window.Maximize
Other options include:
1) Removing the banner
2) Scrolling the element into view
Can't write anything decent for those last two as your code is an image and I don't have a full URL to test with. You also haven't included the relevant HTML.
add a comment |
If what you have said is true then you can use the following to maximize the window before clicking:
driver.Window.Maximize
Other options include:
1) Removing the banner
2) Scrolling the element into view
Can't write anything decent for those last two as your code is an image and I don't have a full URL to test with. You also haven't included the relevant HTML.
If what you have said is true then you can use the following to maximize the window before clicking:
driver.Window.Maximize
Other options include:
1) Removing the banner
2) Scrolling the element into view
Can't write anything decent for those last two as your code is an image and I don't have a full URL to test with. You also haven't included the relevant HTML.
answered Nov 13 '18 at 7:19
QHarrQHarr
30.9k81941
30.9k81941
add a comment |
add a comment |
The "div.container-fluid" element is blocking the button you are trying to click.
You could try some of the following (as being shown here Element MyElement is not clickable at point (x, y)... Other element would receive the click):
- prolong the wait before the click
- use javascript executor
add a comment |
The "div.container-fluid" element is blocking the button you are trying to click.
You could try some of the following (as being shown here Element MyElement is not clickable at point (x, y)... Other element would receive the click):
- prolong the wait before the click
- use javascript executor
add a comment |
The "div.container-fluid" element is blocking the button you are trying to click.
You could try some of the following (as being shown here Element MyElement is not clickable at point (x, y)... Other element would receive the click):
- prolong the wait before the click
- use javascript executor
The "div.container-fluid" element is blocking the button you are trying to click.
You could try some of the following (as being shown here Element MyElement is not clickable at point (x, y)... Other element would receive the click):
- prolong the wait before the click
- use javascript executor
answered Nov 13 '18 at 12:04
Mate MršeMate Mrše
1,2341324
1,2341324
add a comment |
add a comment |
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.
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%2f53275067%2fselenium-for-vba-element-not-found-error%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
Welcome to Stack Overflow! You'll be more likely to get help if you were to edit your question to include the problematic code, as well as the section of html that changed, and he attempt that you've made to solve the issue on your own. (See "How to Ask" as well as how to create a Minimal, Complete, and Verifiable example.)
– ashleedawg
Nov 13 '18 at 6:46
Please insert code between code tags not as an image.
– QHarr
Nov 13 '18 at 7:13