• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

XPath not working - Element not found error

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?


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;">
 
Back
Top