Selenium WebElement Login button findElement

I'm looking for the right findElement setting for the login button.  I had it working at one time with id="u_0_q", but then it stopped working.  I'm using Window 10 Edge Webdriver
What could work?  The first three lines are the DOM locator.  The first line looks to be a frame, before the login button.
The login button is that of login
//<label class="uiButton uiButtonConfirm" id="loginbutton" for="u_0_q">
//<input tabindex="4" id="u_0_q" type="submit" value="Log In" data-testid="royal_login_button"
		//driver.findElement(By.cssSelector("input[value=royal_login_button")).click();//absolute not work
		//driver.findElement("loginbutton")).click();//works for Edge!

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I would use find by ID since your DOM has an ID defined on that element.
chimaAuthor Commented:
gurpsbassi, thank you for your response.  I tired firefox and all of the ones that I tried in MS Edge, work with firefox;
//All of these work with firefox, but not with Edge
		//driver.findElement(By.cssSelector("input.inputtext[id=u_0_q]"));// can't get click
		//driver.findElement("loginbutton")).click();//works for Edge!
		driver.findElement(By.cssSelector("input[value=Log In]")).click();

Open in new window

I'm editing this comment, after noticing that one of the statements did not have a click method.  I then noticed that facebook opens up even without any commend
to open/click on the login button.  
Why is this happening?
I really don't understand the question.
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

chimaAuthor Commented:
gurpsbassi,  the question is now two fold; ! - these findElement statements do not work with MS Edge browser.  I would like to know what works.
I made a second comment that the same findElement statements listed work with the firefox browser.
In stating this fact to you, I noticed that one statement was completely wrong.  I checked to see why and learned that facebook login was allowing me to enter my account without having to click on login.
So now the second question is; why is it that this is happening (login without the .click() method?)
you might want to raise an issue in any microsoft edge web driver forums. Can't imagine why such a basic thing would not work!
But then again, its microsoft :)

I've not seen that behaviour with Facebook. before. I've just tried it, I always get the login page and have to manually click the log in button all the time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chimaAuthor Commented:
Expert Commentby:gurpsbassi  Let me play with it a bit more.  If I can "make my case," then I'll report it.  First of all; I need to find out why firefox logs in without clicking on the "login" button.  In Eclipse I cleaned my project and rebuilt the project, yet I got the same result.
I'm working on another program/project, so I'll be right back.
chimaAuthor Commented:
Expert Commentby:gurpsbassi, I came back to it, and this time none worked.  Then I did a clean and rebuild of the project and now they all work.  Question is; is it truly working?  Have you ever seen this?  Might "it" be affecting other project code?
Never seen it sorry.
chimaAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.