before watching the frameworks please watch how create a custom xpath(module 12).
hi ,
Please tell me what is the wrong with this Xpath for validate it after making any custom xpath I also check whether any node is identified with this xpath or not any it is which node.
I am requesting please reply with solution where I did mistake.
this xpath is all wrong
[code:1po6lmgz]//*[contains(@placeholder,'Card Number')][/code:1po6lmgz]
the above xpath will not work in java selenium.
the java selenium xpath looks more like
[code:1po6lmgz]//*[@id="wrapcentre"]/form/div[/code:1po6lmgz]
the the difference between the 2.
Hi,
I did not understand what you want to say please explain .....
and please also tell me what should be Correct Xpath for this screen I am not able to view your xpath in the Attached screen
Plz explain and tell me the correct xpath
Not Working Please can you wrote down here the appropriate Xpath after checking form your end.
I tried this too, But strangely its not able to locate component with explicit wait too.
Though Card Number has inner input field too :
<div class="frm-el-wr card-no-wr txt-el-wr">
<label class="frm-el-lbl" for="card-no">CARD NUMBER</label>
<input id="card-no" class="frm-el frm-el-tx card-no-el auto-for only-number plc-hd" placeholder="Card Number" maxlength="19" autocomplete="off" name="pan"/>
</div
@Ashish : Could you please try it once and tell ?
xpath for card number
[color=#FF0000:189fi1h2]//*[@id="card-no"][/color:189fi1h2]
cvv number
[color=#FF0000:189fi1h2]//*[@id="cvv-no"][/color:189fi1h2]
name on the card
[color=#FF0000:189fi1h2]//*[@id="card-name"][/color:189fi1h2]
and month and year
[color=#FF0000:189fi1h2]//*[@id="exp-dt-mt"]
//*[@id="exp-dt-yr"][/color:189fi1h2]
"org.openqa.selenium.NoSuchElementException: Unable to locate element <identifier>" with given identifier.
Plz try with project what deepak attached in initial thread by changing xpath of your's choice . I am also interested to know since it didn't work for me also.
I have attached the project here, however there is not much changed in project given by deepak.
i couldn't understand your project. are you switching frame any where in the project?
because that Card number etc. are in an iframe?
Ohh Yes! I just didn't notice there is one iframe too. Thanks !!
Its working now.