mirror of
https://github.com/appium/appium.git
synced 2026-02-11 12:29:48 -06:00
Merge pull request #2395 from rgonalo/fixdump
Fix Appium crash when fails getting source page in Android
This commit is contained in:
@@ -377,7 +377,8 @@ androidController.getPageSource = function (cb) {
|
||||
|
||||
],
|
||||
// Top level cb
|
||||
function () {
|
||||
function (err) {
|
||||
if (err) return cb(err);
|
||||
var xml = fs.readFileSync(xmlFile, 'utf8');
|
||||
fs.unlinkSync(xmlFile);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user