horseKevin
New Member
Hi there,
I am able to use Object fin1 to find the text '1+2'. I want to change the default value of 10 in the user input box. I tried using the XPath below to select the value 10, but I got an error message saying "Element not found." What's wrong with my codes?
A portion of codes extracted from the webpage are as follows:
I am able to use Object fin1 to find the text '1+2'. I want to change the default value of 10 in the user input box. I tried using the XPath below to select the value 10, but I got an error message saying "Element not found." What's wrong with my codes?
Code:
Set fin2 = fin1.FindElementByXPath("../../following-sibling::div[@class='collapse-content-r']//div[@class='unitbet-input']//input[@value='10']")
A portion of codes extracted from the webpage are as follows:
Code:
<div class="bet-type-col small-bet-type-col">
<div class="collapse-content-l">
<div class="collapse-betline">1 + 2 </div>
<div class="collapse-content-r">
<div class="unitbet-input ">
<span>$</span>
<input maxlength="10" type="text" inputmode="numeric" value="10" style="font-size: 15px;">