Jump to content



Photo

Url - Add To Url


  • Please log in to reply
3 replies to this topic

#1 fjslan

fjslan

    Newbie

  • Members
  • Pip
  • 2 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 20 September 2018 - 03:58 PM

Setup...

 

UI 1= URL1

 

UI 2= URL2

this will be a drop down with 4 choices being   -    blank, /sheets, /gmail, /docs

 

User opens bot and fills in URL1 with GOOGLE.COM    this is stored as variable URL1

 

User then selects one of the drop down items ie sheets.  this is stored as variable URL2

 

In the bot, I want to navigate to a URL that is a COMBINATION of URL1 and URL2

 

NOT JUST   GOOGLE.COM,      NOT JUST /SHEETS 

 

BUT        google.com/sheets

 

HOW CAN I NAVIGATE TO URL1+URL2

 

UGH!!!

 

Thanks in advance..



#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3376 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 20 September 2018 - 05:59 PM

try

ui drop down("Site","google.com",#site)
ui drop down("Path","sheets,gmail,docs",#path)
navigate("{#site}/{#path}","Wait")
 
 
 


New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 fjslan

fjslan

    Newbie

  • Members
  • Pip
  • 2 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 21 September 2018 - 08:29 AM

The code of ...navigate("{#site}/{#path}","Wait")  DID NOT WORK

 

When I took out the "/" it worked... so it looked like this  navigate("{#site}{#path}","Wait")

 

In ubot I had "spell it out"...  I had to type "{#site}{#path}" 

 

I could not just type #site#path, I had to use the { }

 

So you did help!  Thanks.

 

Along the same line of questioning...  I need to enter UI TEXT  call is variable #text

after the bot enters the text I need the bot to hit or simulate TAB or SPACE or BACKSPACE or ENTER

{TAB}  {SPACE}  {BS}  {ENTER}

 

IN Ubot I am using the TYPE TEXT FUNCTION and trying to figure out what to put in the Pink TEXT box...

 

I have tried many options but can not get them to work...

 

#text by itself does type the text but when I add anything else I get exactly what I put in box symbols and all...

I also tried the KEYBOARD EVENT feature and nothing.

 

 

Any help appreciated...



#4 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3216 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 21 September 2018 - 11:11 AM

The code of ...navigate("{#site}/{#path}","Wait")  DID NOT WORK

 

When I took out the "/" it worked... so it looked like this  navigate("{#site}{#path}","Wait")

 

In ubot I had "spell it out"...  I had to type "{#site}{#path}" 

 

I could not just type #site#path, I had to use the { }

 

So you did help!  Thanks.

 

Along the same line of questioning...  I need to enter UI TEXT  call is variable #text

after the bot enters the text I need the bot to hit or simulate TAB or SPACE or BACKSPACE or ENTER

{TAB}  {SPACE}  {BS}  {ENTER}

 

IN Ubot I am using the TYPE TEXT FUNCTION and trying to figure out what to put in the Pink TEXT box...

 

I have tried many options but can not get them to work...

 

#text by itself does type the text but when I add anything else I get exactly what I put in box symbols and all...

I also tried the KEYBOARD EVENT feature and nothing.

 

 

Any help appreciated...

 

{TAB} will probably tab out of the field just FYI, but {TAB} {ENTER} and {BACKSPACE} all work for space you can just literally put a space there. Try using these in a separate type text, not the same as the rest of your normal text. That way they work properly.

 

Stay away from Keyboard event if possible.

 

Example:

ui text box("Name",#name)
navigate("https://ubotstudio.com/site/playground-simple-form/","Wait")
wait for element(<username field>,"","Appear")
wait(1)
type text(<username field>,#name,"Standard")
loop($text length(#name)) {
    wait(1)
    type text(<username field>,"\{BACKSPACE\}","Standard")
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users