Iam using below xpath:
//label[text()='First Name']/Parent::div/following-sibling::div/div/input[#disabled='disabled']
But showing an error as:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string
'//label[text()='First
Name']/Parent::div/following-sibling::div/div/input[#disabled='disabled']'
is not a valid XPath expression.
The error says it all - the expression is invalid. The issue is in the parent axis - it has to be in small caps, not capitalized as you've set it.
Maybe you can try to make a shorter Xpath, because seems long Xpath are hard to read, so as an example you can try with:
//button[contains(text(),'Yes')]
or
//button[contains(.,'Yes')]
Make a shorter Xpath worked for me.
Related
update room1f set nearestStaircase=‘POINT(-79.92094988409 43.25888417131)’ where locatoin=‘POINT(-79.9212601080121 43.2588970425146)’
I got error:
near "43.25888417131": syntax error:
The nearestStaircase and location is just TEXT. I treat them as string. Could someone help me?
NVM,solved. I should use " rather than '
The example code:
assert_select 'div#<CSS id for error explanation>'
assert_select 'div.<CSS class for field with error>'
This generates:
DEPRECATION WARNING: The assertion was not run because of an invalid css selector. ] 16% Time: 00:00:01, ETA: 00:00:06
unexpected '#' after '[#]' (called from block in at /home/ubuntu/workspace/sample_app/test/integration/users_signup_test.rb:25)
DEPRECATION WARNING: The assertion was not run because of an invalid css selector.
unexpected '<' after '.' (called from block in at /home/ubuntu/workspace/sample_app/test/integration/users_signup_test.rb:26)
I read somewhere that versions 4.2+ need an other way to do assert_select. Is that true? And what should be used?
[ I have to say; I am still an absolute beginner ]
substitute a your-class under <CSS class...>, and your-id under <CSS id ...>
I'm getting the following error in the Chrome console:
Uncaught SyntaxError: Unexpected token ILLEGAL
At the start of my concatenated CSS file:
#import url("http://fonts.googleapis.com/css?family=Raleway:300,400,600")
This line ends up on its own, and it's specifically this line that throws the error:
I've had a look around and it seems this error should relate to invisible characters making their way into the code. Unfortunately in my case that doesn't seem to be true. I've even deleted this portion of code and re-written it by hand to make sure - no difference.
I use Stylus (with gulp) and the resulting compile is naturally what throws the error - is this maybe an issue with gulp-stylus? I've looked at the compiled code and can't track down any invisible characters there either…
Does anything else throw this error?
The error implies you are trying to load the style sheet with <script> instead of <link rel=stylesheet>.
CSS is not JavaScript and can't be treated as such.
I'm trying to remove all of the unused css in the framework I'm using by using uncss. But when I try I get the error:
file:///C:/Users/Angus/Desktop/FTTL%20website%20submit/index.html:15 in onload
Fatal error: UnCSS: could not open C:\Users\Angus\Desktop\FTTL website%20submit\css\main.css
Does anyone know why this is?
Iyou forget to handle the first space properly (FTTL website%20submit) in the path, if you change the folder name or escape it properly (like FTTL%20website%20submit) it might work.
Edit: Or the other way around and the %20 substitution for the path was not working for the second space. (I am not familiar with uncss.)
(In my opinion it is best not using spaces in file and folder names.)
I am using Teradata SQLA 14.01 and want to use the OTRANSLATE function, but it is not working. I have checked the DBC.FunctionsV table to ensure that the function is defined in the system, which it is. However, even when I use the sample code;
SELECT OTRANSLATE('TD13.0 is the current database version','3', '4');
I am faced with a 3706 error:
Syntax error: expected something between '(' and the string 'T'
keyword.
All help will be greatly appreciated!!