ie.waitforvalue command doesn't work properly - g1ant

I tried to run this code but it doesn't work properly. It got stuck on line 3 and gives error "timeout, element not found".
ie.open g1ant.com
window ‴✱internet explorer✱‴
ie.waitforvalue script document.getElementsByClassName("footer_stuff").length expectedvalue 1
dialog ‴Page loaded!‴
ie.close

It's because "footer_stuff" class doesn't exist in g1ant.com page. Did you mean "footer"? Try the following code instead.
ie.waitforvalue script document.getElementsByClassName("footer").length expectedvalue 1

Related

G1ANT Studio Advance Course Lesson 8 Error

Error Image occuring in advance course Lesson 8:
Code used is
program mtsc
♥rdc = /ui[#name='Remote Desktop Connection']
waitfor.ui ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.click ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.settext ‴♥rdc/ui[#typeid='50003']/ui[#typeid='50004']‴ text test.domain.com
delay 1
ui.settext ‴♥rdc/ui[#id='13064']‴ text admin
When I am executing program their is error occuring at 4th line of code i.e. "
Exception of type FlaUI.Core.Exceptions.ElementNotAvailableException'
was thrown" kindly give solution on this error.
Use the wpath address of the combox and paste it in the code instead of "rdc/ui[#typeid='50003']/ui[#typeid='50004".
And don't use rdc in front of that wpath, it will run the code.
You can refer my assignment video. I have shown in that how can we remove this error.

Nautilus-actions-new equivalent FileManager-Actions?

Is there a nautilus-actions-new equivalent for filemanager-actions, in order to create a new action from a command line ?
Nautilus-actions-new command returns command not found.
Nothing appears in the documentation on this subject (Help/Content...).
Thanks
The equivalent command for nautilus-actions-new is:
/usr/libexec/filemanager-actions/fma-new

xlwings(0.7.0) importing UDF error

Hello,
My problem is that when i try to import an UDF in Ecxel 2013 I receive the error message can be seen on the picture. I have installed xlwings and it works except the UDF importing. Note that i used "xlwings quickstart myproject" so there is no problem with the file names and i also used the sample function so that should be fine as well
Thank you in advance for your help!
I currently don't understand why you get that error, but I should be able to tell you how you can work around it for now:
Open the file udfs.py in the xlwings package and remove the last argument on line 36, i.e. remove , ArgumentDescriptions=argdocs.
The intended functionality of that line (showing function argument description) is currently broken anyway (see here) so hopefully this will be resolved in a future version.

Why am i getting this run time error in lua of bad argument #-1 to '_newindex' (string expected, got nil)

I was configuring the transparency in my rc.lua file for my awesome wm. I am now getting the error mentioned in the title. I have since opened up my original rc.lua thats located in /etc/xdg/awesome/rc.lua and made it exactly the same, yet i still get this error. Any thoughts?
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
I got the Error when installing a new Theme, but I guess it could be the same problem.
The two mentioned lines are perfectly fine, the error message is misleading!! The problem was (in my configuration at least) a wrong path to my theme file:
# This was the original line:
# beautiful.init("~/.config/awesome/themes/Darklooks/")
# and now the working full path to my theme file:
beautiful.init("~/.config/awesome/themes/Darklooks/theme.lua")

Runtime error in Opencv text module sample code "webcam_demo"

When I run other samples code of module text , everything is well. But when I tried to run webcam_demo program I got this error:
Error: Illegal min or max specification!
"Fatal error encountered!" == NULL:Error:Assert failed:in file globaloc.cpp, line 75
The debugger breaks execution right before this line:
ocrs.push_back(OCRTesseract::create());
webcam_demo.cpp
Thank you for helping out
I had same problem, when using tesseract with OpenCV.
When I moved initialization before anything else, it started to work.

Resources