Selenium cssSelector and attribute

Hello, I got, or it appeared; an extension/plugin, https://getfirebug.com/wiki/index.php/Selectors_Side_Panel, that tells me, Go! is the attribute of css selector "input"
<input onclick="showAlert()" value="Go!" type="button">

Open in new window


I've been searching for, what I believe I once saw; driver.findElement(By.cssSelector(input[@attribute = "Go!"])) ;
But this does not work.  How does one use css Selector with an attribute?
chimaAsked:
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.

NicholasCommented:
Try

driver.findElement(By.cssSelector(input[value='Go!']));

Open in new window

chimaAuthor Commented:
Nicholas, thank you for the response.  We/I was missing the outer double quotes .  I checked the following with the Selenium IDE and  this works with the IDE, but not in the script;
driver.findElement(By.cssSelector("input[value = 'Go!'][type = 'button']")).click(); 

Open in new window

I have placed wait statements before and after, this does not help.
NicholasCommented:
Don't really know Selenium, I was just using normal CSS logic for the selectors

If it works locally I would be looking at what is different in your live environment - is there multiple inputs with the same value...?

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:
Nicholas, this worked, removed the type; driver.findElement(By.cssSelector("input[value = 'Go!']")).click();
I'll issue points tomorrow.  thanks  I can use your help with css
chimaAuthor Commented:
Thanks, there more to come.
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.