Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
191 views
by
edited by

I want to automate cryptocurrency exchange site(https://www.binance.com/en/trade/LSK_BTC) values since each exchange values are got changed in every millisecond. And am having doubt how to automate it. If it is possible can anyone suggest me to proceed?

Here the left side red color data are available bitcoins with the price. If anyone purchased that value will change at any time. So kindly suggest me how to set expected and actual values to ensure displayed values are correct? Thanks in Advance.

1 Answer

0 like 0 dislike
by The go-to Tester (142 points)

Yes, automating it is a little tricky part, but not impossible.

You can use XPath of each value.

First, I will select an object with a class name, "ReactVirtualized__Grid__innerScrollContainer"

Under it, you can find out a number of objects and iterate through each element using XPath.

So, this is how XPath of the first three values looks like.

//*[@id="__next"]/div/main/div[2]/div/div/div[1]/div[1]/div[2]/div[1]/div[2]/div[2]/div/div[1]/div/div[2]/div/div[2]/div[2]/span

//*[@id="__next"]/div/main/div[2]/div/div/div[1]/div[1]/div[2]/div[1]/div[2]/div[2]/div/div[1]/div/div[2]/div/div[3]/div[2]/span

//*[@id="__next"]/div/main/div[2]/div/div/div[1]/div[1]/div[2]/div[1]/div[2]/div[2]/div/div[1]/div/div[2]/div/div[4]/div[2]/span

Check the bold part where you can see the difference in values. Rest of the path is the same. So, you can iterate through values using above xpath. 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...