RE: How to identify Extjs objects which are very dynamic

Hi I’m working on a application which is having object is very dynamic in nature. especially around the webtable, raido buttons and drop down. I’m using selenium IDE and Webdriver.
I tried Xpath too which end in same dynamic properties. Please do help me to identify these object and handle them.

sample code has been placed below where the properties are dynamic.


driver.get("app URL");

driver.findElement(By.id("AccountFile:AccountFileMenuActions-btnIconEl")).click(); driver.findElement(By.id("AccountFile:AccountFileMenuActions:AccountFileMenuActions_Create:AccountFileMenuActions_NewSubmission-textEl")).click();

driver.findElement(By.id("NewSubmission:NewSubmissionScreen:ProductSelection_GODV:AcquireClearances-btnInnerEl")).click();   driver.findElement(By.id("NewSubmission:NewSubmissionScreen:ProductSelection_GODV:5:SelectButton")).click();
driver.findElement(By.id("ext-gen4714")).click();

driver.findElement(By.id("ext-gen4718")).click();
driver.findElement(By.id("SubmissionWizard:Next-btnInnerEl")).click();

driver.findElement(By.id("SubmissionWizard:Next-btnInnerEl")).click();

driver.findElement(By.id("SubmissionWizard:Next-btnInnerEl")).click();

driver.findElement(By.id("SubmissionWizard:LOBWizardStepGroup:LineWizardStepSet:WC7StateCoverageScreen:WC7StateCoverageCV:WC7ClassesInputSet:WCCovEmpLV_tb:Add-btnInnerEl")).click();

driver.findElement(By.id("ext-gen5929")).click();

driver.findElement(By.id("ext-gen5972")).click();

driver.findElement(By.id("simplecombo-1553-inputEl")).click();

driver.findElement(By.id("ext-gen6021")).click();

Dilip Default Asked on October 27, 2014 in Software Testing.
2 Answers

Hi Dilip,

Take a look at the below article and let me know if you still face any issue on choosing xpath:

http://www.toolsqa.com/selenium-webdriver/choosing-effective-xpath/

Regards,
Lakshay Sharma

Professor Answered on October 27, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.