Web scraping - SyntaxError: Failed to execute 'evaluate' on 'Document': - web-scraping

Can anyone help me? I'm doing web scraping. I want to click on the button. Here is my xpath code:
/html/body/center/table/tbody/tr[2]/td/form/table[2]/tbody/tr[18]/td[3]/width='20%'/input[3]
I got an error as follow. Can anyone explain why and what is the solution?
SyntaxError: Failed to execute 'evaluate' on 'Document': Type conversion failed while evaluating the expression.

Related

Compilation Error on my server on SmartStore App

I have installed SmartStore on my server. everything is working fine except the add category module. when ever I try to Add or Edit any category an error pops saying :
Compilation Error Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source
code appropriately.
Compiler Error Message: CS0121: The call is ambiguous between the
following methods or properties:
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Action>)'
and
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Func,object>)'
Line 441: .ToolBar(commands => commands.Template(CategoryProductsGridCommands))
Please help me out. I m stuck :(
After working on it, we got the solution for this. So kindly try like this.
Hope will work
.ToolBar(commands => commands.Template(pp=>GridCommands(pp)))

How to solve Silverstripe User error Uncaught InvalidArgumentException?

I am getting error message in silverstripe
[User Error] Uncaught InvalidArgumentException: Unable to parse string: Malformed inline YAML string ({count} {class} saved successfully.).
I have added screenshot of error page.
Thanks guys for your reply. it was a YAML parser error. There was a bug in the 'gridfield-bulk-editing-tools' module, I got a help from silverstripe forum

How can I fix parser Error in ASP.NET?

I'm facing a parser error in ASP.NET, how can I handle it and why this error is coming? How can I resolve it?
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'BrightPublication.PurchaseOrderForm'.
Source Error:

ERROR by deployApp("nameofApps")

I'm using the shiny package(v0.9.1). After executing the command deployApp("nameofApp") I got the following error. I couldn't find anyone, who had similar problem. May be someone can try explaining, how can I overcome this problem?
library(shiny)
library(shinyapps)
runApp("nameofApp") # works fine!
deployApp("nameofApp") # ERROR see below!
[Error: Unhandled Exception: Child Task 201442 error: Unhandled Exception: create: SQL error or missing database: no such table: entity]

Failed to generate code for the service reference on a webservice

EgoPay's website has a WebService that i'm trying to work with, But there is a problem when i add it to my Asp.Net project( I added it through "Add Service Reference" option) after building solution i have got an error :
Custom tool error: Failed to generate code for the service reference 'ServiceReference1'.  Please check other error and warning messages for details.
and i have got 3 Warning :
1- Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: The datatype 'schemas.xmlsoap.org/soap/encoding/:Array' is missing.
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
2- Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:service[#name='API_EgoPay_SoapService']/wsdl:port[#name='API_EgoPay_SoapPort']
3- Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
XPath to Error Source: //wsdl:definitions[#targetNamespace='https://www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
the webservice address is : https://www.egopay.com/api/soap?wsdl
i searched in the net for this error and most of answers were "uncheck Reused types in referenced assemblies" but it did'nt work to me.
i'll be thankfull if anyone help me or anyone could test this webservice in asp.net and tell me the result.

Resources