Can selenium be used for INTRAnet? not INTERnet
Can selenium be used to access intranet websites in the following format? I am trying to access a website that is in the form something/
where something is just a word that doesn't contain https or .com etc.
Also, suppose not, then could it still be used to play around with websites whose url is of the form https://something
where again, something is just a word that doesn't contain https or .com etc.
Here is my code:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("something/")
selenium
|
show 2 more comments
Can selenium be used to access intranet websites in the following format? I am trying to access a website that is in the form something/
where something is just a word that doesn't contain https or .com etc.
Also, suppose not, then could it still be used to play around with websites whose url is of the form https://something
where again, something is just a word that doesn't contain https or .com etc.
Here is my code:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("something/")
selenium
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
2
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you trydriver.get("http://something/")
?
– keepAlive
Jan 3 at 17:23
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25
|
show 2 more comments
Can selenium be used to access intranet websites in the following format? I am trying to access a website that is in the form something/
where something is just a word that doesn't contain https or .com etc.
Also, suppose not, then could it still be used to play around with websites whose url is of the form https://something
where again, something is just a word that doesn't contain https or .com etc.
Here is my code:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("something/")
selenium
Can selenium be used to access intranet websites in the following format? I am trying to access a website that is in the form something/
where something is just a word that doesn't contain https or .com etc.
Also, suppose not, then could it still be used to play around with websites whose url is of the form https://something
where again, something is just a word that doesn't contain https or .com etc.
Here is my code:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("something/")
selenium
selenium
edited Jan 3 at 21:16
keepAlive
3,20541224
3,20541224
asked Jan 3 at 17:11
graphtheory123graphtheory123
165
165
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
2
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you trydriver.get("http://something/")
?
– keepAlive
Jan 3 at 17:23
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25
|
show 2 more comments
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
2
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you trydriver.get("http://something/")
?
– keepAlive
Jan 3 at 17:23
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
2
2
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you try
driver.get("http://something/")
?– keepAlive
Jan 3 at 17:23
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you try
driver.get("http://something/")
?– keepAlive
Jan 3 at 17:23
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25
|
show 2 more comments
2 Answers
2
active
oldest
votes
You necessarily have an application protocol (for example HTTP, HTTPS, BGP, DHCP, DNS, FTP, IMAP, LDAP, MGCP, ...) that specifies the methods used by hosts in a communications network. In your case, to access your page, you may want to try
driver.get("http://something/")
In reaction to your question in comment about the difference between http and https: as it reads here
Using HTTPS, the computers agree on a "code" between them, and then they scramble the messages using that "code" so that no one in between can read them. This keeps your information safe from hackers.
To directly access your site while dealing with SSL certificates (https), you may want to try
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://something/")
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
add a comment |
Selenium works with any valid URL. "something" isn't a valid URL. A valid URL needs a scheme (http, ftp, etc), so that selenium knows how to access the data. For example, "http://something" is valid, as is "file:///something" (though by "valid" I mean they are syntactically valid). They may not return any results unless there's an intranet server named "something" or a file on your system named "/something".
For more information about what makes up a proper url, one fairly simple description is on the wikipedia entry for URL
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
add a comment |
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%2f54026801%2fcan-selenium-be-used-for-intranet-not-internet%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
You necessarily have an application protocol (for example HTTP, HTTPS, BGP, DHCP, DNS, FTP, IMAP, LDAP, MGCP, ...) that specifies the methods used by hosts in a communications network. In your case, to access your page, you may want to try
driver.get("http://something/")
In reaction to your question in comment about the difference between http and https: as it reads here
Using HTTPS, the computers agree on a "code" between them, and then they scramble the messages using that "code" so that no one in between can read them. This keeps your information safe from hackers.
To directly access your site while dealing with SSL certificates (https), you may want to try
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://something/")
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
add a comment |
You necessarily have an application protocol (for example HTTP, HTTPS, BGP, DHCP, DNS, FTP, IMAP, LDAP, MGCP, ...) that specifies the methods used by hosts in a communications network. In your case, to access your page, you may want to try
driver.get("http://something/")
In reaction to your question in comment about the difference between http and https: as it reads here
Using HTTPS, the computers agree on a "code" between them, and then they scramble the messages using that "code" so that no one in between can read them. This keeps your information safe from hackers.
To directly access your site while dealing with SSL certificates (https), you may want to try
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://something/")
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
add a comment |
You necessarily have an application protocol (for example HTTP, HTTPS, BGP, DHCP, DNS, FTP, IMAP, LDAP, MGCP, ...) that specifies the methods used by hosts in a communications network. In your case, to access your page, you may want to try
driver.get("http://something/")
In reaction to your question in comment about the difference between http and https: as it reads here
Using HTTPS, the computers agree on a "code" between them, and then they scramble the messages using that "code" so that no one in between can read them. This keeps your information safe from hackers.
To directly access your site while dealing with SSL certificates (https), you may want to try
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://something/")
You necessarily have an application protocol (for example HTTP, HTTPS, BGP, DHCP, DNS, FTP, IMAP, LDAP, MGCP, ...) that specifies the methods used by hosts in a communications network. In your case, to access your page, you may want to try
driver.get("http://something/")
In reaction to your question in comment about the difference between http and https: as it reads here
Using HTTPS, the computers agree on a "code" between them, and then they scramble the messages using that "code" so that no one in between can read them. This keeps your information safe from hackers.
To directly access your site while dealing with SSL certificates (https), you may want to try
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://something/")
edited Jan 3 at 19:32
answered Jan 3 at 17:26
keepAlivekeepAlive
3,20541224
3,20541224
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
add a comment |
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
@graphtheory123 See my update. Does it work?
– keepAlive
Jan 3 at 19:32
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
Thanks for the answer, and yes I asked a new question in the comments of the answer that Bryan just posted. If you could address that that would be great
– graphtheory123
Jan 3 at 20:46
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
@graph I addressed your other comment/question in practice. Verbally, this is because Selenium may not deal with ssl certificates automatically, i.e. loading https directly may not work automatically. The redirection from http to https (that you see) circumvents the problem. Test my update above. Does it work?
– keepAlive
Jan 4 at 0:40
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
the new thing you posted doesn't work on my computer
– graphtheory123
Jan 4 at 18:09
add a comment |
Selenium works with any valid URL. "something" isn't a valid URL. A valid URL needs a scheme (http, ftp, etc), so that selenium knows how to access the data. For example, "http://something" is valid, as is "file:///something" (though by "valid" I mean they are syntactically valid). They may not return any results unless there's an intranet server named "something" or a file on your system named "/something".
For more information about what makes up a proper url, one fairly simple description is on the wikipedia entry for URL
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
add a comment |
Selenium works with any valid URL. "something" isn't a valid URL. A valid URL needs a scheme (http, ftp, etc), so that selenium knows how to access the data. For example, "http://something" is valid, as is "file:///something" (though by "valid" I mean they are syntactically valid). They may not return any results unless there's an intranet server named "something" or a file on your system named "/something".
For more information about what makes up a proper url, one fairly simple description is on the wikipedia entry for URL
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
add a comment |
Selenium works with any valid URL. "something" isn't a valid URL. A valid URL needs a scheme (http, ftp, etc), so that selenium knows how to access the data. For example, "http://something" is valid, as is "file:///something" (though by "valid" I mean they are syntactically valid). They may not return any results unless there's an intranet server named "something" or a file on your system named "/something".
For more information about what makes up a proper url, one fairly simple description is on the wikipedia entry for URL
Selenium works with any valid URL. "something" isn't a valid URL. A valid URL needs a scheme (http, ftp, etc), so that selenium knows how to access the data. For example, "http://something" is valid, as is "file:///something" (though by "valid" I mean they are syntactically valid). They may not return any results unless there's an intranet server named "something" or a file on your system named "/something".
For more information about what makes up a proper url, one fairly simple description is on the wikipedia entry for URL
edited Jan 3 at 17:30
answered Jan 3 at 17:24
Bryan OakleyBryan Oakley
221k22276434
221k22276434
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
add a comment |
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
Thanks for the answer. One thing I am still curious about though is why https:// something didn't work whereas http:// something did, especially because after the website loads, the address bar displays https:// something instead of http:// something
– graphtheory123
Jan 3 at 18:33
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%2f54026801%2fcan-selenium-be-used-for-intranet-not-internet%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
Yes of course. Why not? At least if your intranet page is browsable using a classical internet browser.
– keepAlive
Jan 3 at 17:12
@Kanak It doesn't seem to work though for sites of the form something/. Could you send me an example of it working for you?
– graphtheory123
Jan 3 at 17:20
2
You necessarily have a protocole to access your webpage via webbrowers, be it internally or externally served. Did you try
driver.get("http://something/")
?– keepAlive
Jan 3 at 17:23
Oh that works!! Thanks! I had tried it with https, but that didn't work. Could you please explain to me the difference between using http and https? Thanks!
– graphtheory123
Jan 3 at 17:25
"something/" isn't a valid URL. What do you expect selenium to do with that? Open a file named "something"? "something.html"? Go to "something.com"? "something.net"?
– Bryan Oakley
Jan 3 at 17:25