|
I have credit cards from multiple banks, and I think I'm not the only one. That's a rather sad attempt if they didn't anticipate such a question. I mean - I would need to ask this even if I hadn't any suspicion to start with ...
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://test.com/");
driver.findElement(By.name("SelectedDomainName")).sendKeys("a");
driver.findElement(By.id("UserName")).sendKeys("b");
driver.findElement(By.id("Password")).sendKeys("#123");
driver.findElement(By.id("loginBtn")).click();
String Url = driver.getCurrentUrl();
if (Url.equals("http://test.com/Home/Index"))
{
System.out.println("Login successful");
}
else
{
System.out.println("Login Failed");
}
|
|
|
|
|
throw new InvalidOperationException("Programming question in the lounge!");
|
|
|
|
|
|
Haha, thanks!
|
|
|
|
|
While I realize your post is a programming question and shouldn't be here, I will say, good luck. I worked with Selenium in C# for a bit and found it incredibly obtuse, buggy, and inconsistent. Run away from it. Write your web client so it uses REST calls that you can test against with unit tests, rather than simulating user input.
Marc
|
|
|
|
|
Apart form this not belonging to the lounge, i take it the .click() method is blocking, otherwise the url check will be over and done with before the source page has changed to the new index page (if the login was successful of course!)
|
|
|
|
|
Magnets and Marbles ! - YouTube[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Someone with way too much time on their hands.
Definitely cool though. Thanks for posting this.
Within you lies the power for good - Use it!
|
|
|
|
|
Especially since that guy describes himself as a perfectionist.
He does have a lot of time on his hands, though.
His other videos are also quite awesome.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I think the guy must have been born and raised in a a video game.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
|
behind me, Satan !
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
BillWoodruff wrote: behind me, Satan ! Don't worry, I've got your back!
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
|
|
|
|
|
Don't think I want to see that one.
|
|
|
|
|
Taking that title literally, I don't think one will make much money trying to find security flaws that way.
|
|
|
|
|
|
"Here’s The Thing With Ad Blockers"
... I'm keeping mine on until you convince me that you're worth paying. That's the "thing".
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Just remember that we've got enough rules in the English language, and we don't need anyone making up new ones.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Too much hype kills the goodness of a product.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Or has Win 10 just changed, and made the desktop icon overlays huge?
I normally use PSPad to open TXT files, and the association has just disappeared - so I put it back and "Boing!" there is a massive pen nib over the file icon.
To my mind, the "shortcut" overlay looks bigger too - it's almost 1/4 of the icon?
When did that happen?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Maybe they needed your attention.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
OriginalGriff wrote: When did that happen?
I think it was back in 2007, toward the end of the year. So, it has been around for a long time.
|
|
|
|