lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

How to capture the text from popup messages. #467

Closed RutujaNagare closed 5 years ago

RutujaNagare commented 5 years ago

Hi,

I want read a text from popup message which get vanished after few seconds from screen. I am able to get the x-path for the message but while trying to read the text not able to read the same.

Could you please suggest how should i proceed?

Sample code I am using let temp = //div[@class='toast-message'] read temp

lefthandedgoat commented 5 years ago
displayed temp
let value = read temp
RutujaNagare commented 5 years ago

It wokrs..Thank you...