How toextract the number from the parent div excluding the text of the child using Selenium IDE

I’m trying to fetch the number out the Steam site -> https://store.steampowered.com/about/ Element snapshot: Code trials: await driver.findElement(By.xpath("//div[@class=’online_stats’]//div[2][@class=’online_stat’]")).getText().then((text)=>{ onlinePlayersInGames = text; }); Doing it with this code results in me getting a returned value of: ONLINE 22,099,967 Rather than only fetching the number. >Solution : To extract the data for playing now: await driver.findElement(By.xpath("//div[@class=’online_stat’][./div[@class=’online_stat_label gamers_in_game’]]")).getText().then((text)=>{… Read More How toextract the number from the parent div excluding the text of the child using Selenium IDE