Get current element position from window

594 views
Skip to first unread message

setthapong imsuwan

unread,
Feb 2, 2017, 3:55:50 AM2/2/17
to robotframework-users


Hi all 


I need a keyword get current position from window screen and not position website google search button 


I use keyword Get Horizontal Position and Get Vertical Position because keyword return position from website and not return position from window current position











setthapong imsuwan

unread,
Feb 2, 2017, 4:26:01 AM2/2/17
to robotframework-users


เมื่อ วันพฤหัสบดีที่ 2 กุมภาพันธ์ ค.ศ. 2017 15 นาฬิกา 55 นาที 50 วินาที UTC+7, setthapong imsuwan เขียนว่า:

Tatu Aalto

unread,
Feb 3, 2017, 1:36:24 AM2/3/17
to tut...@gmail.com, robotframework-users
Ugh

There is selenium API call to get the window position[1], but by a quick look on the Selenium2Library documentation reveals that the selenium API is not exposed as a keyword. It should be relatively easy to make such keyword to the Selenium2Library. If you want it, please raise a issue to the Selenium2Library issue tracker and even better if it can be back up with a pull request.

[1] http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.get_window_position

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

setthapong imsuwan

unread,
Feb 3, 2017, 1:59:49 AM2/3/17
to robotframework-users, tut...@gmail.com

Ok I Try Use keyword Get window position not work because keyword return position window web app but keyword not return element position relative window

  
I will send to Selenium2Library issue tracker for problems
 

เมื่อ วันศุกร์ที่ 3 กุมภาพันธ์ ค.ศ. 2017 13 นาฬิกา 36 นาที 24 วินาที UTC+7, Tatu Aalto เขียนว่า:
Ugh

There is selenium API call to get the window position[1], but by a quick look on the Selenium2Library documentation reveals that the selenium API is not exposed as a keyword. It should be relatively easy to make such keyword to the Selenium2Library. If you want it, please raise a issue to the Selenium2Library issue tracker and even better if it can be back up with a pull request.

[1] http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.get_window_position

-Tatu
Send from my mobile
On Feb 2, 2017 10:55 AM, "setthapong imsuwan" <tut...@gmail.com> wrote:


Hi all 


I need a keyword get current position from window screen and not position website google search button 


I use keyword Get Horizontal Position and Get Vertical Position because keyword return position from website and not return position from window current position











--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages