开发者

Selenium IDE - Not capturing button link

开发者 https://www.devze.com 2023-04-07 13:21 出处:网络
In Selenium IDE, the application has got image as button. The click event for that is not capturing. Is there any alternativ开发者_JS百科e Selenium Commands available for that or otherwise, is there a

In Selenium IDE, the application has got image as button. The click event for that is not capturing. Is there any alternativ开发者_JS百科e Selenium Commands available for that or otherwise, is there any JavaScript user extensions can be added?

Please help.

Thanks


Yes.. the image will act as a button..

Found a solution for that!!

Simply added a JavaScript code which supports clickAt() commands.


To detect button as image you can use one of the below solution

xpath=//img[@src='/images/logo_home.png']
xpath=//img[@alt='Home']
//img[@src='/images/logo_home.png']
0

精彩评论

暂无评论...
验证码 换一张
取 消