Could someone help me now. I’m trying to identify a web element on Chrome as below
“
”
And it’s working fine on Chrome but when did not work in Firefox because of attribute “app” of the element in Firefox is “chrome.exe”
Do we have any way to identify the object to execute on both of browser?
If you are trying to use same code for Chrome and Firefox then you have to change the all selectors dynamically. for this you have to store the “app” value in an excel config file.
like
Chrome = Chrome.exe
Firefox = firefox.exe
then when ever you are using chrome use Chrome variable else use Firefox variable.
I’ve already installed Firefox extension and it’s working fine. The question I want to ask is define a Element and it have to work on both of Browser as Firefox, Chrome or even IE
Open that web page in all browsers and indicate that element and compare all 3 selectors and try to identify which attribute value is changing. Make selector dynamic using wild card entries or passing variable to selector.
As @Palaniyappan mentioned, follow that way to pass variable to selector.