When we enter text in google search textbox it auto-suggest the options, the objects changes.
Now I want to click the Search button which was earlier Google Search.
I have created the Google Search button with name
property and btnK
is the value.
Now as the property changes to btnG
, so how I can retrieve the properties and then use this property value to identify the object.
This sounds like dead-end because object changes and so we cannot retrieve it's value. I believe we can use dynamic property here. But I am stuck here! I am using Selenium webdriver with Java.
Any help is appreciated!