Selenium 2 webdriver for Eiffel

16 views
Skip to first unread message

Anders Persson

unread,
Nov 23, 2019, 3:32:54 PM11/23/19
to Eiffel Web Framework
Hi

This code does not find the  id with testLog since, I think, updated to version 19.05 of Eiffel Studio. I have located the id in the webbrowser. In general the id identification does not seem to work any longer. I have also verified that I have the latest version of WedBriverEiffel

Regards

Anders


create wait.make (web_driver, 30)
wait.until_when (agent expected_title(web_driver, "BSharp ToDo"))
if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title)
else
report_failure := true
end

if attached {WEB_ELEMENT} web_driver.find_element ((create {SE_BY}).id ("testLog")) as log then
print ("%NTeslog id:" + log.element)
else
report_failure := true
end


Anders Persson

unread,
Nov 23, 2019, 3:48:32 PM11/23/19
to Eiffel Web Framework

I have verified that it did work with 19.05 also.

Any clue of why it is not found?

Anders

JV

unread,
Nov 24, 2019, 8:32:37 AM11/24/19
to Eiffel Web Framework
Where do you have the code to test?


/Javier

Anders Persson

unread,
Nov 24, 2019, 1:02:38 PM11/24/19
to Eiffel Web Framework google groups
Hi

It is a similar program that I am developing

Vänligen

Anders Persson
+46 763 17 23 25





--
--
You received this message because you are subscribed to the Google
Groups "Eiffel Web Framework" group.
 
To post to this group, send email to
eiffel-web...@googlegroups.com
To unsubscribe from this group, send email to
eiffel-web-frame...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eiffel-web-framework
 
See the site for the Eiffel-Web-Framework project at
https://github.com/EiffelWebFramework/EWF
---
You received this message because you are subscribed to the Google Groups "Eiffel Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-web-frame...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-web-framework/88cdde3b-9a0a-45c2-af5b-d8ffdbb9bfce%40googlegroups.com.

Anders Persson

unread,
Nov 25, 2019, 12:39:17 PM11/25/19
to Eiffel Web Framework
Hi

I reproduced the the problem with this code which is a modification of the findelementbyid example. Do you get the same problem when running it? My program does not find the header id but the title.

--Create a new instance of a Web driver
create web_driver.make

-- Start session with chrome
web_driver.start_session_chrome

-- Go to Eiffel.org login page
web_driver.to_url ("http://www.eiffel.org/")

-- Find the user name, password element by its id and submit
if attached {WEB_ELEMENT} web_driver.find_element ((create {SE_BY}).id ("header")) then
print ("%NHeader found" )
end
if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title)
end
Reply all
Reply to author
Forward
0 new messages