i only have the value for the button as Login.I have to now try to click the button using the button,can you please help me how i can do that.I tried the xpath but it is too fragile.
this is the xpath is got,which i dont want to use
i want to use something like this
selenium.click("//button[@value=' Log in ']");
but it is not working ,it is not able to find the element.
try using text not value in the locater above?
Here's a concept: Can you use constants in Selenium when not using it in one of the external programing languages?
Like in the instance the person is requesting help in, could you create file with constant/value pairs in it and then substitute the constant for the path per his example?
If you're a slave to your free associations, does it automatically become something else?
i am sorry i dont get the solution can you please tell me what i have to do exactly
got the solution,this is is what i used
selenium.click("xpath=//button[contains(text(), 'Log in')]");