Hi Team,
I am trying to implement Selenium in my new project which is having Smartclient framework. Whenever I tried it shows me the element not found error. Please find the log.
[info] Playing test case Untitled
[info] Executing: |open | /indi.html | |
[info] Executing: |click | scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/ | |
[info] Located in doScClick : scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/
[error] Element scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/ not found
[info] Test case failed
[info] Test suite completed: 1 played, 1 failed
This is the code it try to capture
<img id="sel_isc_OID_7" width="16" height="16" border="0" align="TEXTTOP" suppress="TRUE" name="isc_15addHouseholds" src="https://Test-tst.app.test.com/isomorphic/skins/Enterprise/images/actions/add.png"></img>
When I tried second time image id is changed as you see below OID_7 to OID_5, is this the cause or anything elsle.
<img id="sel_isc_OID_5" width="16" height="16" border="0" align="TEXTTOP" suppress="TRUE" name="isc_15addHouseholds" src="https://https://Test-tst.app.test.com/isomorphic/skins/Enterprise/images/actions/add.png"></img>
I am trying to implement Selenium in my new project which is having Smartclient framework. Whenever I tried it shows me the element not found error. Please find the log.
[info] Playing test case Untitled
[info] Executing: |open | /indi.html | |
[info] Executing: |click | scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/ | |
[info] Located in doScClick : scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/
[error] Element scLocator=//TabSet[ID="mainTabSet"]/paneContainer/member[Class=HLayout||index=0||length=4||classIndex=0||classLength=2]/member[Class=SectionStack||index=0||length=2||classIndex=0||classLength=2]/section[Class=SectionHeader||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||title=%3Cb%3E%3Cimg%20src%3D%27%24fs%24images%24fs%24households.png%27%20align%3D%27bottom%27%3E%20Households%3C%24fs%24b%3E||scRole=heading||name=secHouseholds]/controlsLayout/member[Class=DatumButton||index=0||length=4||classIndex=0||classLength=4||roleIndex=0||roleLength=4||scRole=button||name=addHouseholds]/ not found
[info] Test case failed
[info] Test suite completed: 1 played, 1 failed
This is the code it try to capture
<img id="sel_isc_OID_7" width="16" height="16" border="0" align="TEXTTOP" suppress="TRUE" name="isc_15addHouseholds" src="https://Test-tst.app.test.com/isomorphic/skins/Enterprise/images/actions/add.png"></img>
When I tried second time image id is changed as you see below OID_7 to OID_5, is this the cause or anything elsle.
<img id="sel_isc_OID_5" width="16" height="16" border="0" align="TEXTTOP" suppress="TRUE" name="isc_15addHouseholds" src="https://https://Test-tst.app.test.com/isomorphic/skins/Enterprise/images/actions/add.png"></img>