简体   繁体   中英

Access elements created dynamically by extjs

I'm using Firefox 41.0 along with Selenium 2.47.3 webdriver. Our application is developed in ExtJS and we are getting some dynamic buttons upon clicking certain elements.

My webdriver is unable to access this element. So, I'm trying to execute a javascript module within python webdriver call.

I'm unable to access the element which dynamically gets loaded on web page.

How to access these kind of elements. The button click is supposed to bring a popup defined in the dynamic content.

Dynamic elements generated by ExtJS thorough an ajax call:

在此处输入图片说明

Failing while trying to execute click on this element from javascript:

在此处输入图片说明

You should try to get component with Ext.

Example:

Ext.getCmp('id').fireEvent('click');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM