Atoss Time Control Login issue
I can't figure out how to simulate the RETURN or ENTER through selenium driver. I can fill in the credentials but fail to click the Login button. I think I tried everything out there...still no luck.
The idea behind is to be able to make the clock in process less "painful". I have to clock in/out at least 4 time a day.
Tried the Special Keys of selenium RETURN = u'ue006'
no luck.
Here is the xpath of the login button : /html/body/div[2]/div[2]/div[5]/div[3]/div/div
Here is my try :
element3 = driver.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[5]/div[3]/div/div').click()
html code from the login button line : tabindex="11
- is responsible for log in button I guess.
<div style="position: absolute; overflow: hidden; -moz-user-select: none; cursor: default; color: rgb(207, 207, 207); text-align: center; font-family: Verdana, "Lucida Sans", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal; background: rgb(252, 158, 3) none repeat scroll 0% 0%; opacity: 1; outline: currentcolor none medium; z-index: 1; border-width: 1px; border-style: solid; border-color: rgb(164, 164, 164); border-radius: 3px; width: 102px; height: 22px; left: 0px; top: 0px;" tabindex="11"><div style="position: absolute; overflow: hidden; white-space: nowrap; text-decoration: inherit; left: 32px; width: 37px; top: 2px; height: 16px;">Log in</div></div>
python selenium
add a comment |
I can't figure out how to simulate the RETURN or ENTER through selenium driver. I can fill in the credentials but fail to click the Login button. I think I tried everything out there...still no luck.
The idea behind is to be able to make the clock in process less "painful". I have to clock in/out at least 4 time a day.
Tried the Special Keys of selenium RETURN = u'ue006'
no luck.
Here is the xpath of the login button : /html/body/div[2]/div[2]/div[5]/div[3]/div/div
Here is my try :
element3 = driver.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[5]/div[3]/div/div').click()
html code from the login button line : tabindex="11
- is responsible for log in button I guess.
<div style="position: absolute; overflow: hidden; -moz-user-select: none; cursor: default; color: rgb(207, 207, 207); text-align: center; font-family: Verdana, "Lucida Sans", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal; background: rgb(252, 158, 3) none repeat scroll 0% 0%; opacity: 1; outline: currentcolor none medium; z-index: 1; border-width: 1px; border-style: solid; border-color: rgb(164, 164, 164); border-radius: 3px; width: 102px; height: 22px; left: 0px; top: 0px;" tabindex="11"><div style="position: absolute; overflow: hidden; white-space: nowrap; text-decoration: inherit; left: 32px; width: 37px; top: 2px; height: 16px;">Log in</div></div>
python selenium
add a comment |
I can't figure out how to simulate the RETURN or ENTER through selenium driver. I can fill in the credentials but fail to click the Login button. I think I tried everything out there...still no luck.
The idea behind is to be able to make the clock in process less "painful". I have to clock in/out at least 4 time a day.
Tried the Special Keys of selenium RETURN = u'ue006'
no luck.
Here is the xpath of the login button : /html/body/div[2]/div[2]/div[5]/div[3]/div/div
Here is my try :
element3 = driver.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[5]/div[3]/div/div').click()
html code from the login button line : tabindex="11
- is responsible for log in button I guess.
<div style="position: absolute; overflow: hidden; -moz-user-select: none; cursor: default; color: rgb(207, 207, 207); text-align: center; font-family: Verdana, "Lucida Sans", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal; background: rgb(252, 158, 3) none repeat scroll 0% 0%; opacity: 1; outline: currentcolor none medium; z-index: 1; border-width: 1px; border-style: solid; border-color: rgb(164, 164, 164); border-radius: 3px; width: 102px; height: 22px; left: 0px; top: 0px;" tabindex="11"><div style="position: absolute; overflow: hidden; white-space: nowrap; text-decoration: inherit; left: 32px; width: 37px; top: 2px; height: 16px;">Log in</div></div>
python selenium
I can't figure out how to simulate the RETURN or ENTER through selenium driver. I can fill in the credentials but fail to click the Login button. I think I tried everything out there...still no luck.
The idea behind is to be able to make the clock in process less "painful". I have to clock in/out at least 4 time a day.
Tried the Special Keys of selenium RETURN = u'ue006'
no luck.
Here is the xpath of the login button : /html/body/div[2]/div[2]/div[5]/div[3]/div/div
Here is my try :
element3 = driver.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[5]/div[3]/div/div').click()
html code from the login button line : tabindex="11
- is responsible for log in button I guess.
<div style="position: absolute; overflow: hidden; -moz-user-select: none; cursor: default; color: rgb(207, 207, 207); text-align: center; font-family: Verdana, "Lucida Sans", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal; background: rgb(252, 158, 3) none repeat scroll 0% 0%; opacity: 1; outline: currentcolor none medium; z-index: 1; border-width: 1px; border-style: solid; border-color: rgb(164, 164, 164); border-radius: 3px; width: 102px; height: 22px; left: 0px; top: 0px;" tabindex="11"><div style="position: absolute; overflow: hidden; white-space: nowrap; text-decoration: inherit; left: 32px; width: 37px; top: 2px; height: 16px;">Log in</div></div>
python selenium
python selenium
asked Jan 24 at 11:43
AnotherUser31AnotherUser31
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1397882%2fatoss-time-control-login-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1397882%2fatoss-time-control-login-issue%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