Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
assert Contains Text Not Working
jayachandran
Members
Hi,
Below assert getting failed.
_assertContainsText("Jbtu Jduh TEST", "Jbtu Jduh TEST");
Any suggestions would be greatly appreciated.
Below assert getting failed.
_assertContainsText("Jbtu Jduh TEST", "Jbtu Jduh TEST");
Any suggestions would be greatly appreciated.
Comments
_assertContainsText($expected, $element[, $message])
from here it seems you are missing something....which element are you checking with?
_assertContaincText("message",__getValue(_label("message")))
Please refer to the link below for more information.
https://sahipro.com/docs/sahi-apis/assertions.html#_assertContainsText