18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Domain issues in Safari & Chrome
Hi
i was testing a cross domain application(Samsung.com) in different browsers.
test flow is
1. navigate to http://www.samsung.com
2.click on "Sign In" button of Facebook
"Sign In" button is in Facebook domain, so this action is not getting recorded in Safari & chorme
But it is recorded in ie, firfox,& opera like browser.domain("facebook.com").submit("u_0_0").click();
In the sahi console i am getting an error like
"Debug: concat.js: Diff domain: Could not add XHR to list for automatic monitoring
TypeError: Cannot read property 'XHRs' of undefined"
This error appears only while recording in Safari and Chrome
There is no "document.domain= XXXXXX" in the source code
Sahi version : OS4.3
Safari version : 5.1.7
Chrome version:26
ie version : 10
firefox version : 21
OS: windows 7
ANY Help Would Be Appreciated..
Thanks & regards in advance
i was testing a cross domain application(Samsung.com) in different browsers.
test flow is
1. navigate to http://www.samsung.com
2.click on "Sign In" button of Facebook
"Sign In" button is in Facebook domain, so this action is not getting recorded in Safari & chorme
But it is recorded in ie, firfox,& opera like browser.domain("facebook.com").submit("u_0_0").click();
In the sahi console i am getting an error like
"Debug: concat.js: Diff domain: Could not add XHR to list for automatic monitoring
TypeError: Cannot read property 'XHRs' of undefined"
This error appears only while recording in Safari and Chrome
There is no "document.domain= XXXXXX" in the source code
Sahi version : OS4.3
Safari version : 5.1.7
Chrome version:26
ie version : 10
firefox version : 21
OS: windows 7
ANY Help Would Be Appreciated..
Thanks & regards in advance
Answers
Please add the facebook domain in sahi/userdata/config/domainfix.txt.
Please add the following line in the text file.
*.facebook.com facebook.com
This is added by default in the latest released OS build.
Regards.
I am using the latest version and the above line is already present in the domainfix.txt file
but still no change