You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi Members
I am trying to enter value in the text box but phantoms 2 is not working and below is the HTML code
<div class="xxx xx">
<div class="col-10"> </div>
<input class="kpad-input" data-bet-id="1" data-has-balance="False" data-single-xx="1" data-val="true" data-val-number="The field UnitStake must be a number." data-val-required="The UnitStake field is required." id="UnitStake-1" name="xxx[0].xx" placeholder="Stake" type="text" value="" />
I tried all ((IJavaScriptExecutor)driver).ExecuteScript("document.getElementById('UnitStake-1').setAttribute('value', '2' );");
But still it is passing the value but there is a javascript function while entering, it is not called
Kaleem Uddin Mohammed Abdul
unread,
Aug 4, 2015, 1:39:18 AM8/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Looks like the Id is dynamic generated. I would suggest, find Id during debugging!